Eljefegeneo
Still trying to learn
- Local time
- Today, 10:54
- Joined
- Jan 10, 2011
- Messages
- 902
Is there any way of getting a list of the queries in a database by type? That is, I would like to have a form that has two combo boxes. One selecting the type of query: Select, delete, append, update, make table. The second comb box would show only those types of queries selected by the first combo box.
I have been using the following to get a list:
But I can't figure out to set a parameter to select them by type. I really want the list to show only the select queries, but I am curious to know if the query type can be identified.
Any suggestions? Thanks.
I have been using the following to get a list:
Code:
SELECT m.Name [FONT="]FROM MSysObjects AS m[/FONT]
[FONT="]WHERE m.Type=5 AND m.Name Not ALike "~%" [/FONT]
[FONT="]ORDER BY m.Name;[/FONT]
Any suggestions? Thanks.