View Full Version : selecting queries from combo box
ek378996
11-30-2010, 03:29 PM
How would I select different queries using a combo box?
and i need a button at the end after selecting the query.
SoftwareMatt
12-02-2010, 09:57 AM
Set up a table as follows:
ID
QueryName
QueryDisplayName
Then add the relevant details to the table for your queries.
Now on a form populated the combo with the query table.
Add a button with code on the OnClick event as follows:
Docmd.OpenQuery Me!ComboBoxName.Column(1)
Note: you will need to replace the ComboBoxName with whatever name you use for the combo.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.