Link to home
Start Free TrialLog in
Avatar of Michael Paravicini
Michael ParaviciniFlag for Chile

asked on

ABS with regional settings does not work for decimals

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.
SOLUTION
Avatar of John Tsioumpris
John Tsioumpris
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Michael Paravicini

ASKER

Thank you so much to both of you... Very helpful.. Cheers Michael