Link to home
Start Free TrialLog in
Avatar of jodstrr2
jodstrr2

asked on

Wild Card question

Hi Expert,
How do I enter a wild card in a query that pull every record the match 09, for example, I have 85S09123, 97D092345 etc, I want to pull all record that are the fourtht numer start as 09.  I tried to use like*09 but it doesn't work.

Thanks
Avatar of mbizup
mbizup
Flag of Kazakhstan image

Assuming an Access Back End you would use this criteria:

LIKE "##?09*"
>>I tried to use like*09
put the value in apostrophes:
I tried to use like '*09'

That will give you the records where the field END with 09. If you want a "contains", put the wild-card both to the left an right of 09:
... LIKE '*09*'

Finally, if that still does not work try:
... LIKE '%09%'
ASKER CERTIFIED SOLUTION
Avatar of mbizup
mbizup
Flag of Kazakhstan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jodstrr2
jodstrr2

ASKER

Thank you!!! That's what I was looking for.
Glad to help :)