EL_Gringo
Member
- Local time
- Today, 17:56
- Joined
- Aug 22, 2012
- Messages
- 38
I recently face strange errors when taking an App to a computer that runs Access in Spanish (I'm developing on an all English System, W10, Office 2013 32 Bit): A simple statement like Me.FilterOn=True asks to introduce the parameter value for Verdadero (Spanish for True); no matter if I then type 'Verdadero' or 'True', I get an error. Setting Me.FilterOn=Verdadero also produces an error (Compile error, variable not defined).
And it gets stranger. The lines:
Call StoreSettingBool("SysFESettings", False, 3)
Public Sub StoreSettingBool(ByVal MTable As String, ByVal MWhat As Boolean, ByVal MRow As Byte)
CurrentDb.Execute "UPDATE " & MTable & " SET " & _
MTable & ".SysSetBool = " & MWhat & " WHERE " & MTable & ".IDNum = " & MRow & ";"
End Sub
produces an error, as MWhat contains 'Verdadero' which is not recognized, but
Call StoreSettingBool("SysFESettings", False, 3)
Public Sub StoreSettingBool(ByVal MTable As String, ByVal MWhat As Boolean, ByVal MRow As Byte)
If MWhat = True Then
CurrentDb.Execute "UPDATE " & MTable & " SET " & _
MTable & ".SysSetBool = True WHERE " & MTable & ".IDNum = " & MRow & ";"
Else
CurrentDb.Execute "UPDATE " & MTable & " SET " & _
MTable & ".SysSetBool = False WHERE " & MTable & ".IDNum = " & MRow & ";"
End If
End Sub
works fine. When I change Access language from Spanish to English, all works perfect, but that I cannot do to the users, as Word and Excel are affected too. This Problem has not been existing before, it all worked fine taking the Apps to computers running Access in other languages.
And it gets stranger. The lines:
Call StoreSettingBool("SysFESettings", False, 3)
Public Sub StoreSettingBool(ByVal MTable As String, ByVal MWhat As Boolean, ByVal MRow As Byte)
CurrentDb.Execute "UPDATE " & MTable & " SET " & _
MTable & ".SysSetBool = " & MWhat & " WHERE " & MTable & ".IDNum = " & MRow & ";"
End Sub
produces an error, as MWhat contains 'Verdadero' which is not recognized, but
Call StoreSettingBool("SysFESettings", False, 3)
Public Sub StoreSettingBool(ByVal MTable As String, ByVal MWhat As Boolean, ByVal MRow As Byte)
If MWhat = True Then
CurrentDb.Execute "UPDATE " & MTable & " SET " & _
MTable & ".SysSetBool = True WHERE " & MTable & ".IDNum = " & MRow & ";"
Else
CurrentDb.Execute "UPDATE " & MTable & " SET " & _
MTable & ".SysSetBool = False WHERE " & MTable & ".IDNum = " & MRow & ";"
End If
End Sub
works fine. When I change Access language from Spanish to English, all works perfect, but that I cannot do to the users, as Word and Excel are affected too. This Problem has not been existing before, it all worked fine taking the Apps to computers running Access in other languages.