W
William Wisnieski
Hello Everyone
Access 2000
Looking for some suggestions and advice on how to proceed with this. I hope
its not as complicated as it seems to me right now.
I've got an unbound main form with a subform bound to a query
[qrySearchResults]. What I'd like to do is have the user choose criteria
from four objects on the main form then click a button that displays the
filtered results on the subform.
What I have so far on the main form going from left to right is this:
[lstboxdept] an unbound list box of departments. when the user selects a
department, the next list box [lstmajor] displays the majors associated with
those departments. This works fine.
then an unbound option [opthonors] group with a yes and no button
then another unbound list box of states [lststate].
What makes this more complicated is the fact that the user may only want to
filter on state, or honor and state, or just department and major, etc.
How do I pass the criteria from the four unbound objects to the subform's
query? Should I put the code in the onclick event of the button on the main
form or does the code go in the query grid?
Thank you for any and all help with this. I feel like I'm in over my head
on this one!
William
Access 2000
Looking for some suggestions and advice on how to proceed with this. I hope
its not as complicated as it seems to me right now.
I've got an unbound main form with a subform bound to a query
[qrySearchResults]. What I'd like to do is have the user choose criteria
from four objects on the main form then click a button that displays the
filtered results on the subform.
What I have so far on the main form going from left to right is this:
[lstboxdept] an unbound list box of departments. when the user selects a
department, the next list box [lstmajor] displays the majors associated with
those departments. This works fine.
then an unbound option [opthonors] group with a yes and no button
then another unbound list box of states [lststate].
What makes this more complicated is the fact that the user may only want to
filter on state, or honor and state, or just department and major, etc.
How do I pass the criteria from the four unbound objects to the subform's
query? Should I put the code in the onclick event of the button on the main
form or does the code go in the query grid?
Thank you for any and all help with this. I feel like I'm in over my head
on this one!
William