Glen_D
asked on
How do I link combo boxes to select query in a form?
I have three combo boxes each with its own query. I want to filter a data set from the main table using these combo boxes; the combo boxes are basically filters (parameters) that the user selects to filter his or her data.
How do I do this?
Thank You
How do I do this?
Thank You
ASKER
Thanks...let me give this a try as I have to rename the code tables
ASKER
I'm getting a bit stuck here..
The 2 forms names are:
osewg_main
osewg_sub
Combo boxes have queries (select distinct challenges from osewg_main order by challenges)
combo 1 - lu_challenges
combo 2 - lu_heritage
combo 3 - lu_instrument
Could you please guide me a bit more? I know I need to open the code window, paste and modify but I can't seem to get the combo linked. I am using a form and subform.
Thank You
The 2 forms names are:
osewg_main
osewg_sub
Combo boxes have queries (select distinct challenges from osewg_main order by challenges)
combo 1 - lu_challenges
combo 2 - lu_heritage
combo 3 - lu_instrument
Could you please guide me a bit more? I know I need to open the code window, paste and modify but I can't seem to get the combo linked. I am using a form and subform.
Thank You
can you upload a copy of the your db?
ASKER
yes....
Pays-DB.mdb
Pays-DB.mdb
you forgot to include your subform.
ASKER
Yes....sorry ...was cleaning...hold on...
and add more records... ;-)
ASKER
I included the queries for the combo boxes...only two in this test version and the sub form
ASKER
test db
Pays-DB.mdb
Pays-DB.mdb
ASKER
how do you want to do the search based on the selection from the combo box?
after the click event of a command button?
after the click event of a command button?
ASKER
I was looking for the after click in each successive combo box..
If I only selected the top combo, only records with that filter would be displayed
If I selected both combo boxes, then filtered data for both combo boxes would be displayed
The resultant data set should probably be a in a data form but I can adjust later..
Thanks
If I only selected the top combo, only records with that filter would be displayed
If I selected both combo boxes, then filtered data for both combo boxes would be displayed
The resultant data set should probably be a in a data form but I can adjust later..
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
very nice....awesome support.
Thank You so much; I'll be studying your code so I can build off this later.
Glen
Thank You so much; I'll be studying your code so I can build off this later.
Glen
Open in new window