Query List of All Reports

  • Thread starter Thread starter jason
  • Start date Start date
J

jason

I've been able to create a table with my report names, then on a form I have
a combo box that pulls those report names from the table, and finally a
button that opens the selected report.

Well this seems like a long way around. Is it possible to automatically pull
all report names in a query without having to manually add these to a table.
This way, when my user creates a new report, they don't have to add that
report name into a table.

Any help appreciated.
 
Try:

SELECT [Name]
FROM MSysObjects
WHERE Type = -32764
ORDER BY [Name]
 
You can use the undocumented (and usually hidden) MSysObjects table:

SELECT Name
FROM MSysObjects
WHERE Type=-32764
ORDER BY Name

If you're not comfortable working directly with SQL, you can temporarily
unhide the system tables under Tools | Options, and build your query through
the normal GUI.
 
Thanks for the responses.
I used the MSysObjects table and worked fine. Although I had to unhide the
tables in order for it to work in the form.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top