Query based on 6th character

G

Guest

I have a query that I would like to use based on the 6th character. The
first 5 characters can be whatever, but the 6th character needs to match
whatever is entered. I know how to use the "like" criteria I just don't know
how to make it count over the 6 characters. Any suggestions?
 
M

Michel Walsh

fieldName LIKE "?????a*"


as example, for spotting an a.


Can also use

"a" = MID( fieldName, 6, 1 )



If the query ever becomes too slow, maybe you should consider to normalize
your data.



Hoping it may help,
Vanderghast, Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Query for # character not working 2
Extract portion of field 2
Character string 1
parsing a string 3
Help with Complicated Query 3
Select based on 1st character 5
Query Issue 5
If Conditional by XXXXUSXX 5

Top