L
Lisab
I've inherited a large Access database with a lot of connected tables, tons
of queries, and loads of macros. I would like to be able to do the following:
1. Run code to count the number of database objects -- What is the syntax
to return the number of Macros, Reports, and Forms in the database?
a. db.TableDefs.Count – will return number of tables
b. db.QueryDefs.Count – will return number or queries
2. Is there a way to find out every query, report, form and/or macro a
given table is used in. For example given tblMyTable, is there code that
will return every query that uses tblMyTable ? also, given qryMyQuery, is
there code that will return every macro that uses qryMyQuery and every form
that uses qryMyQuery.
***Using Access 2000 or 2003***
of queries, and loads of macros. I would like to be able to do the following:
1. Run code to count the number of database objects -- What is the syntax
to return the number of Macros, Reports, and Forms in the database?
a. db.TableDefs.Count – will return number of tables
b. db.QueryDefs.Count – will return number or queries
2. Is there a way to find out every query, report, form and/or macro a
given table is used in. For example given tblMyTable, is there code that
will return every query that uses tblMyTable ? also, given qryMyQuery, is
there code that will return every macro that uses qryMyQuery and every form
that uses qryMyQuery.
***Using Access 2000 or 2003***