Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic List of Queries 1

Status
Not open for further replies.

wally1169

IS-IT--Management
Aug 25, 2003
6
0
0
US
Is there a way to create a dynamic list of queries in a database to be called from say a combo box? I'm trying to create a form that launches queries, but that I don't have to update every time I create a new query.

Any help on this would be greatly appreciated.

Wally Bahny
 
You should be able to do this with a timer in your form to refresh your query. I have not use timers in VBA, so I can't help there.

hth,
GGleason
 
Here's a query that will do it for you. Set your rowsource of your combobox to it.

SELECT MSysObjects.Name, MSysObjects.Type
FROM MSysObjects
WHERE ((Left$([Name],1)<>&quot;~&quot;) AND ((MSysObjects.Type)=5))
ORDER BY MSysObjects.Name;
 
Thanks FancyPrairie, that's exactly what I needed, and it works!

Wally Bahny
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top