L
Leo Bonnaci
I want to create a query (that exports to Excel -I can do the export part),
based on the user imput from a form.
The are 8 different fields to choose from (ie. renewal month, city, county,
state, Sales Rep, type of business, etc.). I want the user to have a combo
box for each of these fields to choose one record type or all records.
Example: they can choose one Sales Rep, all cities, all states, all
counties, just one type of business and one renewal month. Then run it
again, and this time choose all Sales Reps, a single county, all states, and
one type of business and all months. Etc., Etc., Etc.
I know I could create hundreds of queries for each combination and write
code for each possibility but thought that there must be a better way. Do I
do it through the query or through VBA code on the form (or combination of
both)?
Thanks,
Leo
based on the user imput from a form.
The are 8 different fields to choose from (ie. renewal month, city, county,
state, Sales Rep, type of business, etc.). I want the user to have a combo
box for each of these fields to choose one record type or all records.
Example: they can choose one Sales Rep, all cities, all states, all
counties, just one type of business and one renewal month. Then run it
again, and this time choose all Sales Reps, a single county, all states, and
one type of business and all months. Etc., Etc., Etc.
I know I could create hundreds of queries for each combination and write
code for each possibility but thought that there must be a better way. Do I
do it through the query or through VBA code on the form (or combination of
both)?
Thanks,
Leo