Re: TADODataSet Filter
- From: "Guillem" <guillemvicens-nospam@xxxxxxxxxxxxxxxxxx>
- Date: 21 Nov 2006 07:16:52 -0700
Serge Myrand wrote:
Hello,
Trying to filter a ADODataSet I get an error message when using an OR
in the filter. The message is EOleException, Arguments are of the
wrong type, are out of acceptable range or are in conflict with one
another.
This one works find
Filter := '(Compagnie = 'ELECTRO-OPTICAL INC.') AND ([Prêt à exp R] >
0) '
This one does not
Filter := '(Compagnie = 'ELECTRO-OPTICAL INC.') AND ((Prêt à exp R] >
0) OR ([Prêt à exp] > 0))'
Any hint will be appreciate
thank you in advance
serge
additionally to what Brian suggested it's better to always use
QuotedStr function when assigning strings to filters, i.e.,
Filter := QuotedStr('blablablabla') + ' AND ' +
QuotedStr('bleblebleble') + ...;
This way you avoid a lot of problems.
--
Best regards :)
Guillem Vicens Meier
Dep. Informática Green Service S.A.
www.clubgreenoasis.com
--
Contribute to the Indy Docs project: http://docs.indyproject.org
--
In order to contact me remove the -nospam
.
- References:
- TADODataSet Filter
- From: Serge Myrand
- TADODataSet Filter
- Prev by Date: Re: Storing passwords in a database
- Next by Date: ADOQuery in thread hangs
- Previous by thread: Re: TADODataSet Filter
- Next by thread: ADOQuery in thread hangs
- Index(es):
Relevant Pages
|