Re: Can't use '*' in TADODataset.Filter
- From: "Brian Hollister" <bhollisterATfuturaintlDOTcom>
- Date: Tue, 22 Aug 2006 09:11:21 -0400
The wildcards are different for varying RDBMS. Check your documentation to
be sure what to use.
--
Got a big event coming up? Let us
help coordinate your event. For more
visit www.kissemgoodbye.com
"Arjan de Haan" <2x nospam nospam adwhaan AT hotpop.com> wrote in message
news:44eaa0db@xxxxxxxxxxxxxxxxxxxxxxxxx
ANY records
"Thammarat charoenchai." <apatiu@xxxxxxxxx> wrote in message
news:44ea6e50@xxxxxxxxxxxxxxxxxxxxxxxxx
tblProduct.Filter := 'Name=''*' + edName.Text + '*''';
tblProduct.Filtered := True;
it's not work.
Not sure what you mean with 'it's not work' but I'm assuming you don't see
after turning on the filter. That's because you are filtering on a literalvalue (say
'*Jon*') instead of what I think you want: any value containing thesearched value (like
'John Jones').so:
Because you're using wildcards, you need to use LIKE instead of =, like
tblProduct.Filter := 'Name LIKE ''*' + edName.Text + '*''';
tblProduct.Filtered := True;
Hope this helps.
Success.
...Arjan...
.
- References:
- Can't use '*' in TADODataset.Filter
- From: Thammarat charoenchai.
- Re: Can't use '*' in TADODataset.Filter
- From: Arjan de Haan
- Can't use '*' in TADODataset.Filter
- Prev by Date: Re: Can't use '*' in TADODataset.Filter
- Next by Date: Re: Problems with ADO and Multithreading: List Index Out Of Bounds
- Previous by thread: Re: Can't use '*' in TADODataset.Filter
- Next by thread: Re: Can't use '*' in TADODataset.Filter
- Index(es):
Relevant Pages
|