Solved

Wild Card question

Posted on 2011-09-16
5
423 Views
Last Modified: 2012-05-12
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
0
Comment
Question by:jodstrr2
  • 3
5 Comments
 
LVL 61

Expert Comment

by:mbizup
ID: 36550362
Assuming an Access Back End you would use this criteria:

LIKE "##?09*"
0
 
LVL 82

Expert Comment

by:hielo
ID: 36550363
>>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%'
0
 
LVL 61

Accepted Solution

by:
mbizup earned 500 total points
ID: 36550373
<< LIKE "##?09*" >>

Explaining:

that means "number, number, any character, 09, anything"
0
 

Author Closing Comment

by:jodstrr2
ID: 36550408
Thank you!!! That's what I was looking for.
0
 
LVL 61

Expert Comment

by:mbizup
ID: 36550437
Glad to help :)
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question