K
Kitty
I need to have a form where the user will do a combination
of selecting items from lists and inputting other items.
I then need to take what the user has selected/input and
use it as query parameters.
For example, the user would be able to select multiple
product types from a list box, input a dollar amount,
input a couple of different types of dates and pick
another classification code from a list box. To
illustrate, the user could want a list of all accounts
using dairy or grain products with total sales over $XX
since YY date with a credit class of A. Or they may want
just all dairy and grain customers regardless of size,
date or credit quality.
Help! Would it be best to dump the results of what the
user selects into a table and use that as parameters in
the query? Should I capture the information some how, and
generate a SQL statement in code behind the form for the
query? The product list box would allow multiple
selections. The other list box on the form, credit
quality, would not.
My existing "canned" queries us a combination of tables
and queries linked in one query to populate the result
form. Now I'm trying to build an "ad hoc" form.
Thanks for your suggestions.
Kitty
of selecting items from lists and inputting other items.
I then need to take what the user has selected/input and
use it as query parameters.
For example, the user would be able to select multiple
product types from a list box, input a dollar amount,
input a couple of different types of dates and pick
another classification code from a list box. To
illustrate, the user could want a list of all accounts
using dairy or grain products with total sales over $XX
since YY date with a credit class of A. Or they may want
just all dairy and grain customers regardless of size,
date or credit quality.
Help! Would it be best to dump the results of what the
user selects into a table and use that as parameters in
the query? Should I capture the information some how, and
generate a SQL statement in code behind the form for the
query? The product list box would allow multiple
selections. The other list box on the form, credit
quality, would not.
My existing "canned" queries us a combination of tables
and queries linked in one query to populate the result
form. Now I'm trying to build an "ad hoc" form.
Thanks for your suggestions.
Kitty