If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
How to get query to return total using wildcard
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? |
#2
|
|||
|
|||
How to get query to return total using wildcard
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. -- Build a little, test a little. "workweek" wrote: 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? |
Thread Tools | |
Display Modes | |
|
|