Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Regional settings and data returned from Access

 
   Database Help (Home) -> Visual Basic -> DAO RSS
Next:  Query an external database...  
Author Message
Jeff J Jones

External


Since: Feb 13, 2004
Posts: 1



(Msg. 1) Posted: Fri Feb 13, 2004 2:09 pm
Post subject: Regional settings and data returned from Access
Archived from groups: microsoft>public>vb>database>dao (more info?)

I have a VB application which utilizes an Access 2000 database.

It works fine when the user's Language/Regional setting is "English (US)".
But, change the Lang/Reg to "French (Canadian)" and a typical fraction that
would have returned as "3.14" is returned as "3,14".

Notice the comma instead of the period for the decimal separator. So If I
try to use this number in any SQL string - of course it bombs.

How do I solve this please?

 >> Stay informed about: Regional settings and data returned from Access 
Back to top
Login to vote
Joe Nuke Me Xemu F

External


Since: Nov 30, 2003
Posts: 96



(Msg. 2) Posted: Sat Feb 14, 2004 7:57 pm
Post subject: Re: Regional settings and data returned from Access [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Jeff J Jones" <jjones#NOSPAM#@jonestc.com> wrote in message <news:Osi6Pyl8DHA.1640@TK2MSFTNGP11.phx.gbl>...

 > I have a VB application which utilizes an Access 2000 database.
 >
 > It works fine when the user's Language/Regional setting is "English (US)".
 > But, change the Lang/Reg to "French (Canadian)" and a typical fraction that
 > would have returned as "3.14" is returned as "3,14".
 >
 > Notice the comma instead of the period for the decimal separator. So If I
 > try to use this number in any SQL string - of course it bombs.
 >
 > How do I solve this please?

Try using parameterized QueryDef objects to sidestep string conversions.
Otherwise, use Str$ when embedding numbers and Format$ with date/times.

--
Joe Foster <mailto:jlfoster%40znet.com> DC8s in Spaace: <http://www.xenu.net/>
WARNING: I cannot be held responsible for the above They're coming to
because my cats have apparently learned to type. take me away, ha ha!<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Regional settings and data returned from Access 
Back to top
Login to vote
Display posts from previous:   
   Database Help (Home) -> Visual Basic -> DAO All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]