Populating List w/ Queries

J

JG

I have a listbox on a form and I want to populate it with
the names of all of the queries in the database. Right
now I have it set to show the names of all the tables. I
know that the syntax is:
SELECT [Name]FROM MSysObjects WHERE [Type] = 1

The number 1 is the code for the table names. What is the
number for the query names??

Thanks in advance,
John G
 

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

Top