Trouble with rs.Filter not recognizing wildcards (*)
- From: anthony.pierdominici@xxxxxxxx
- Date: 11 Apr 2007 07:18:09 -0700
I have been searching for the answer to this and can't seem to find
it.
I am trying to apply a filter to a recordset in VBA and it works
perfectly except for when one of the conditions is a wildcard.
Example:
frmFilter has a number of combo boxes from which the user can specify
criteria that will be used in the filter. So say cboName = "*" and my
filter string is is something like this:
[Name] Like '*'
This returns no records...
I have also tried to make the string like this:
[Name] Like "*"
But that doesn't work either.
The first example (using Like with single quotes) seems to work for
everything except when the only thing in the combo box is the
asterisk. If I put any character and an asterisk (ex. D*) in the
combo box it will return records.
Anyone have any ideas on how to fix this?
Thanks,
Anthony Pierdominici
.
- Follow-Ups:
- Re: Trouble with rs.Filter not recognizing wildcards (*)
- From: anthony . pierdominici
- Re: Trouble with rs.Filter not recognizing wildcards (*)
- From: anthony . pierdominici
- Re: Trouble with rs.Filter not recognizing wildcards (*)
- Prev by Date: Child emails
- Next by Date: Re: Export Query to Text File
- Previous by thread: Child emails
- Next by thread: Re: Trouble with rs.Filter not recognizing wildcards (*)
- Index(es):
Relevant Pages
|