W
Ward Visser
Dear all, who knows whats going on here?
If i use a "," in my Windows Language Settings as Decimal Seperator, and a
"." as thousand seperator (which is standard in the Netherlands), my Update
Query generates the Error message:
"Runtime Error 3144 -The Update instruction has a syntax error"
Changing "," and "." to US style solves my problem, but then my customer
starts complaining ...
Simplified set up is like:
My Access has a Table "tblTest" which has a tree Fields:
"Jear" (Data Type: Text). And the Value for the first record is "1995"
"ReadField" (Data Type: Number, Field Sze Double, Decimal Places: Auto),
with Value 10.023,25.
"WriteField" (Data Type: Number, Field Sze Double, Decimal Places: Auto).
should become the same as ReadField
My VBA looks like:
Sub Test()
Dim db As DAO.Database
Dim dblReadField As Double
Set db = CurrentDb
dblReadField = DLookup("[ReadField]", "tblTest", "[Jear] ='1995'")
db.Execute "UPDATE tblTest SET [WriteField] = " & dblReadField & " WHERE
Jear ='1995'"
End Sub
In Debug Mode with my mouse on dblReadField is shows f.e. "10023,25" (mind
te comma)
My WindowsXP is Dutch an AccessXP is English, but thats might not be the
problem.
How can i solve this problem?
Thanks for your help
Ward Visser
If i use a "," in my Windows Language Settings as Decimal Seperator, and a
"." as thousand seperator (which is standard in the Netherlands), my Update
Query generates the Error message:
"Runtime Error 3144 -The Update instruction has a syntax error"
Changing "," and "." to US style solves my problem, but then my customer
starts complaining ...
Simplified set up is like:
My Access has a Table "tblTest" which has a tree Fields:
"Jear" (Data Type: Text). And the Value for the first record is "1995"
"ReadField" (Data Type: Number, Field Sze Double, Decimal Places: Auto),
with Value 10.023,25.
"WriteField" (Data Type: Number, Field Sze Double, Decimal Places: Auto).
should become the same as ReadField
My VBA looks like:
Sub Test()
Dim db As DAO.Database
Dim dblReadField As Double
Set db = CurrentDb
dblReadField = DLookup("[ReadField]", "tblTest", "[Jear] ='1995'")
db.Execute "UPDATE tblTest SET [WriteField] = " & dblReadField & " WHERE
Jear ='1995'"
End Sub
In Debug Mode with my mouse on dblReadField is shows f.e. "10023,25" (mind
te comma)
My WindowsXP is Dutch an AccessXP is English, but thats might not be the
problem.
How can i solve this problem?
Thanks for your help
Ward Visser