J JudyHNM Registered User. Local time Today, 06:53 Joined Oct 5, 2006 Messages 37 Dec 22, 2017 #1 I am using Access 2016, Window 10. Is there a way to get a list of all the queries in the database? Also, is there a way to find out where each query is used and print a report? Thanks, Judy
I am using Access 2016, Window 10. Is there a way to get a list of all the queries in the database? Also, is there a way to find out where each query is used and print a report? Thanks, Judy
isladogs Access MVP / VIP Local time Today, 13:53 Joined Jan 14, 2017 Messages 19,307 Dec 22, 2017 #2 To get a list of queries, use this: Code: SELECT MSysObjects.Name FROM MSysObjects WHERE (((MSysObjects.Flags)<>3) AND ((MSysObjects.Type)=5)); Not clear exactly what you mean by 'where each query is used' Try using Object Dependencies in Database Tools
To get a list of queries, use this: Code: SELECT MSysObjects.Name FROM MSysObjects WHERE (((MSysObjects.Flags)<>3) AND ((MSysObjects.Type)=5)); Not clear exactly what you mean by 'where each query is used' Try using Object Dependencies in Database Tools
J JudyHNM Registered User. Local time Today, 06:53 Joined Oct 5, 2006 Messages 37 Dec 22, 2017 #3 ridders said: To get a list of queries, use this: Code: SELECT MSysObjects.Name FROM MSysObjects WHERE (((MSysObjects.Flags)<>3) AND ((MSysObjects.Type)=5)); Not clear exactly what you mean by 'where each query is used' Try using Object Dependencies in Database Tools Click to expand... Sorry. I mean a list of all the reports and/or form used by the query.
ridders said: To get a list of queries, use this: Code: SELECT MSysObjects.Name FROM MSysObjects WHERE (((MSysObjects.Flags)<>3) AND ((MSysObjects.Type)=5)); Not clear exactly what you mean by 'where each query is used' Try using Object Dependencies in Database Tools Click to expand... Sorry. I mean a list of all the reports and/or form used by the query.
J JudyHNM Registered User. Local time Today, 06:53 Joined Oct 5, 2006 Messages 37 Dec 22, 2017 #4 ridders said: To get a list of queries, use this: Code: SELECT MSysObjects.Name FROM MSysObjects WHERE (((MSysObjects.Flags)<>3) AND ((MSysObjects.Type)=5)); Not clear exactly what you mean by 'where each query is used' Try using Object Dependencies in Database Tools Click to expand... oops - forgot to thank you for the code to list all the queries. It worked perfectly.
ridders said: To get a list of queries, use this: Code: SELECT MSysObjects.Name FROM MSysObjects WHERE (((MSysObjects.Flags)<>3) AND ((MSysObjects.Type)=5)); Not clear exactly what you mean by 'where each query is used' Try using Object Dependencies in Database Tools Click to expand... oops - forgot to thank you for the code to list all the queries. It worked perfectly.