Query criteria based on table entries

R

Robbro

I have a report based on a query to report our "10 worst" customers based on
a couple of factors. Certain customers however are just buying our off
quality products at cheap prices, and should not be included in our "10
worst" analysis.

I have added "Not In ("custname1","custname2" and so on) to my query
criteria line and that works fine, but for future ease of upkeep I thought I
would make a table of customers to not include in the "10 worst" query and
reference that, however I cannot get it to work so far. How do I reference
the table in my "Not In ( )" criteria area or can that even be done?
 
K

KARL DEWEY

Do not use the 'Not In'. In design view add the table that list the
Customers to omit. The table needs to have two fields, the second to flag
without having to add and remove as things change and include ALL customers.

Join on the CustomerID. Add the flag field in the Field row of the grid. In
the criteria row use value to allow query to pull those records you want.
 

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