Parameter query using wildcard characters (1 Viewer)

brianborn

Registered User.
Local time
Today, 17:27
Joined
Jul 14, 2011
Messages
38
I have a field in a table that represents a bin location for inventory items. Within this string of characters are 2 digits that represent a product code. The product code will group similar products like screws, paint, aluminum, etc. I would like to create a parameter query to be able to enter a product code and have it return all items in that group. However, I'm not sure how to accomplish this task.

The data in this field consist of 10 characters with the 3rd and 4th being the product code. I have tried using the following as the criteria, but it does not work.

Code:
Like "??" & [Enter Product Code]

I have found a lot of helpful info searching online, but nothing so far that has helped me solve this problem. Hopefully someone here will be able to help.
 

boblarson

Smeghead
Local time
Today, 13:27
Joined
Jan 12, 2001
Messages
32,059
Create a new field in your query like:

prc: Mid([original field name here],3,2)

Then just use the criteria

[Enter Product Code]


But I would just use a form for input to select the code.
 

Users who are viewing this thread

Top Bottom