Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / June 2007

Tip: Looking for answers? Try searching our database.

Comma as a decimal symbol

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Peter - 14 Jun 2007 12:26 GMT
Here's a tough one:
For the US among others the decimal symbol is a dot. Many countries, mine
with them, is using a comma instead. Now, when performing an SQL query with
a decimal number as an argument with the decimal symbol being a comma, the
query will fail: "Syntax error (comma) in query expression"
If I go to Control Panel -> >Regional and Language Options->Customize and
change the comma to a dot, the query will work as expected. However, running
the application on another computer would require this change as well. I'd
like to avoid Quick and Dirty solutions. I've tried to manually enter a dot
as the separator but Access just removes it making 2.3 become 23.
I'm using US English MS Access 2003 with US English XP SP2, always upgraded
with the lastest hotfixes. Is there a way to make Access honour the Regional
settings (Swedish)?
Regards
Peter
KARL DEWEY - 14 Jun 2007 17:28 GMT
Try this --
Payout: Int([Money]) & "," & Format(([Money]-Int([Money]))*100,"00")
Signature

KARL DEWEY
Build a little - Test a little

> Here's a tough one:
> For the US among others the decimal symbol is a dot. Many countries, mine
[quoted text clipped - 11 lines]
> Regards
> Peter
KARL DEWEY - 14 Jun 2007 17:33 GMT
Better one ---
               Replace([Money] & "",".",",")
Signature

KARL DEWEY
Build a little - Test a little

> Try this --
> Payout: Int([Money]) & "," & Format(([Money]-Int([Money]))*100,"00")
[quoted text clipped - 14 lines]
> > Regards
> > Peter
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.