Re: Problem with decimal separator
- From: "Guillem" <guillemvicens-nospam@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 23 Jun 2005 10:04:43 +0200
Hi,
have you tried this ?ADOQuery.Filter := 'Cost ' + QuotedStr('0,0358');
--
Best regards :)
Guillem Vicens
Dep. informática Green Service SA
www.clubgreenoasis.com
--
In order to send me a mail, remove the -nospam
"kolja2003" <NOSPAMkolja2003@xxxxxxx> escribió en el mensaje
news:42ba5e1b@xxxxxxxxxxxxxxxxxxxxxxxxx
> Hi,
> The locale of my computer uses comma as decimal separator. So MS Access
> database uses comma as decimal separator too which is OK.
>
> BUT when in my program I uses ADOQuery.Filter:='Cost='0,0358''; I get
> empty
> dataset. Notice comma as decimal sepatator!
> Same time when I use period in it like this:
> ADOQuery.Filter:='Cost='0.0358''; it works fine. The recordset isn't empty
> and funny but it has comma(!) as decimal separator not period. Remember I
> don't change locale!
>
> It seems to me that since ADOQuery uses Sql request and Sql request uses
> period as decimal separator then the first expression with comma didn't
> work
> despite it is legitimate from point of view of locale.
>
> SO I have question can I somehow command ADOQuery to legitimate comma
> instead of period in Sql request?
>
>
.
- Follow-Ups:
- Re: Problem with decimal separator
- From: kolja2003
- Re: Problem with decimal separator
- References:
- Problem with decimal separator
- From: kolja2003
- Problem with decimal separator
- Prev by Date: can U solve my problems?
- Next by Date: problem with sgl statement
- Previous by thread: Problem with decimal separator
- Next by thread: Re: Problem with decimal separator
- Index(es):
Relevant Pages
|