How to get query to return total using wildcard

W

workweek

I have a query that has 3 criterion in it as follows: Business Unit,
Location, Category. These criterion are all chosen by the user on a loaded
form. Currently the results then are based on what is chosen from a drop
down list for each of the 3 criterion. The user also wants a total option.
Meaning if Business Unit is chosen, and Location and Category are not chosen
(or if a wildcard is chosen) the result returns a total based on that
Business Unit. How do I write this in the query?
 
K

KARL DEWEY

You have to use a union query, one part for details and the other for the
totals.
Use criteria from the 'total option' to determine which part returns results.
 

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