How to get query to return total using wildcard

  • Thread starter Thread starter workweek
  • Start date Start date
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?
 
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.
 
Back
Top