Criteria Question

F

Florida Analyst

*Access Beginner*

If I contain a set of numbers that are five digits in a column,
I.E. 02996, 03978, V3000, 02979
And I want to exlude every value that starts with 029 (by first 3 digits
only, last two are not important) how will that be be expressed in the
criteria field.

Thank you,
FA
 
J

John W. Vinson

*Access Beginner*

If I contain a set of numbers that are five digits in a column,
I.E. 02996, 03978, V3000, 02979
And I want to exlude every value that starts with 029 (by first 3 digits
only, last two are not important) how will that be be expressed in the
criteria field.

Thank you,
FA

Use a query criterion of

NOT LIKE "029*"

or, to prompt the user instead of hardcoding,

NOT LIKE [Enter three digits to exclude:] & "*"

Note that this field must be of Text datatype, not Number.

John W. Vinson [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

Top