G
ges681 via AccessMonster.com
i have an idea of a query i want to create...let me see if i can describe it
clearly so I can get an idea of how to achieve this:
i have a form with three groups of check boxes (for simplicity lets call them
brand, model, color).
each group has its own set of check boxes... brand(ford,chevy), model(truck,
car,SUV) , color(red, black, blue).
now i have the query. the SELECT and the FROM and the ORDER BY will never
change. they will always bring the same number of columns
but the WHERE should be unique depending on the checkboxes. they should be
able to narrow the query by using any combination of checkboxes. they may
only search by one group (only red color) or by all three (ford truck blue).
this is where i am stuck. how do i create a dynamic query using the
checkboxes from a form?
any ideas or tips would be a big help.
thanks in advance.
clearly so I can get an idea of how to achieve this:
i have a form with three groups of check boxes (for simplicity lets call them
brand, model, color).
each group has its own set of check boxes... brand(ford,chevy), model(truck,
car,SUV) , color(red, black, blue).
now i have the query. the SELECT and the FROM and the ORDER BY will never
change. they will always bring the same number of columns
but the WHERE should be unique depending on the checkboxes. they should be
able to narrow the query by using any combination of checkboxes. they may
only search by one group (only red color) or by all three (ford truck blue).
this is where i am stuck. how do i create a dynamic query using the
checkboxes from a form?
any ideas or tips would be a big help.
thanks in advance.