G
Guest
Does anybody know of a good way to build a query in Access (using the Like
operator and wildcards) to do the following:
Say I have a text field with the following records:
I want the query to return only the records where:
the last three characters are "MCC"
and
the characters preceding the MCC must be 0-4 numeric characters (digits).
SO if the query were working properly, the indicated records would be
returned.
Vals
----------------------
1234MCCI
123MCC <--
145MCC <--
13MCC <--
189MCCT
1MCCK
12345MCC
MCC <--
9MCC <--
ZMCC
The query criteria that comes closest to working, looks something like this:
Like "[####]MCC" but it's not right.
Thanks
operator and wildcards) to do the following:
Say I have a text field with the following records:
I want the query to return only the records where:
the last three characters are "MCC"
and
the characters preceding the MCC must be 0-4 numeric characters (digits).
SO if the query were working properly, the indicated records would be
returned.
Vals
----------------------
1234MCCI
123MCC <--
145MCC <--
13MCC <--
189MCCT
1MCCK
12345MCC
MCC <--
9MCC <--
ZMCC
The query criteria that comes closest to working, looks something like this:
Like "[####]MCC" but it's not right.
Thanks