Re: TADODataSet Filter
- From: Brian Bushay TeamB <BBushay@xxxxxxxxx>
- Date: Mon, 20 Nov 2006 22:10:00 -0600
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))'
You have to write it like this for the filter to process
Filter := '((Compagnie = 'ELECTRO-OPTICAL INC.') AND (Prêt à exp R] > 0) )
OR ((Compagnie = 'ELECTRO-OPTICAL INC.') AND ([Prêt à exp] > 0))'
--
Brian Bushay (TeamB)
Bbushay@xxxxxxxxx
.
- References:
- TADODataSet Filter
- From: Serge Myrand
- TADODataSet Filter
- Prev by Date: Re: Find next ...
- Next by Date: Re: Handling Open Exception
- Previous by thread: TADODataSet Filter
- Next by thread: Re: TADODataSet Filter
- Index(es):
Relevant Pages
|