O
Olle
Hi,
My application i developed in VBA (Excel, english). It accesses tables in
Access and it is working perfect.
But when users having PC's installed in other languages than English I've
got problem. It seams that True/False is not handled correctly.
The application creates an SQL statement, like the one below, and sends it
to Access (ADO) and return with error '-2147217904 No values given for one or
more required parameters'.
Note that True/False is equal to Sant/Falskt in Swedish. The applications
internal Boolean parameters are always set to True/False but seam to be
converted internally to the ones valid for used language. Note also that the
word 'Sant' below is an internal variable (Boolean) always set to True or
False but is converted when displayed and when it is sent to Access.
UPDATE BD_STATUS SET STATUS = Sant WHERE ((FYEAR = '2005') AND (FPER =
'001') AND (LEGUNIT = 'SE01') AND (FSITEM_SUB = '1532200000')) ;
If this SQL statement executes in Access Query it also gives an error. It
can't understand 'Sant' and return an error saying that 'Sant' is a parameter.
Are there any specific rules I have to do for International applications
using Tru/False fields in Access tables?
I use:
VBA 6.4.9972
Excel 2003 SP1
Access 2003 SP1 (2000 database format)
ADO Version 2.5 (I've tried 2.8 with the same result)
Please help.
Olle
My application i developed in VBA (Excel, english). It accesses tables in
Access and it is working perfect.
But when users having PC's installed in other languages than English I've
got problem. It seams that True/False is not handled correctly.
The application creates an SQL statement, like the one below, and sends it
to Access (ADO) and return with error '-2147217904 No values given for one or
more required parameters'.
Note that True/False is equal to Sant/Falskt in Swedish. The applications
internal Boolean parameters are always set to True/False but seam to be
converted internally to the ones valid for used language. Note also that the
word 'Sant' below is an internal variable (Boolean) always set to True or
False but is converted when displayed and when it is sent to Access.
UPDATE BD_STATUS SET STATUS = Sant WHERE ((FYEAR = '2005') AND (FPER =
'001') AND (LEGUNIT = 'SE01') AND (FSITEM_SUB = '1532200000')) ;
If this SQL statement executes in Access Query it also gives an error. It
can't understand 'Sant' and return an error saying that 'Sant' is a parameter.
Are there any specific rules I have to do for International applications
using Tru/False fields in Access tables?
I use:
VBA 6.4.9972
Excel 2003 SP1
Access 2003 SP1 (2000 database format)
ADO Version 2.5 (I've tried 2.8 with the same result)
Please help.
Olle