troubleshooting Question

ABS with regional settings does not work for decimals

Avatar of Michael Paravicini
Michael ParaviciniFlag for Chile asked on
Microsoft AccessVBA
3 Comments2 Solutions16 ViewsLast Modified:
I have a strange issue. I am using the German regional setting of Windows and when I use the following SQL in Access

 Set rst = dbs.OpenRecordset("Select * From tblImportBankFinal Where LinkId=" & Val(Me.cmbKonto.Column(2)) & " AND Not bReconciled AND bDate=" & cSql(rstBuchungen!bDate) & " AND ABS(bSaldo)=" & Abs(rstBuchungen!bAmtLoc))

I do get the following error:

Syntax error (comma) in query expression “LinkId=106 AND Not bReconciled and ABS(bSaldo)=262,35”

The number is the correct German number decimal format. I have tried to convert to string etc but it does not help as it that case the coma is lost. Any help is really appreciated.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros