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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A Query List of Queries How can I use it?

Status
Not open for further replies.

armstrong722

Technical User
Feb 26, 2002
32
0
0
US
I have made a query of the objects in the database using (msysobjects) and have narrowed them down to a select group of query names. These queries have the list I want to loop through.
Access won't allow me to use the query of queries for input into a combo box.

anyway around this?
 
I do this same thing. Just create the query with Msysobjects (I think that's the table). Having a prefix helps to restrict your output to queries, e.g., LIKE 'qry*'.

You can then run with a command button:

strQuery = me.cboName

DoCmd.OpenQuery strQuery

But you said loop...

Dim Qdf as DAO.QueryDef

For Each Qdf in CurrentDB.QueryDefs

'Code

Next

If this hasn't addressed the question post again!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top