Hi Everyone,
I'm hoping someone can help me with a query design to count all records (rows) within each table of an Access database. For example, I have about 20 tables and I would like to list the table name (MSysObjects.Name)and the total count of records within each table (count(*) as TtlRecs). My code I attempted was:
The results produce each table name but the count is just showing 1. I'd appreciate any help on adjusting the query to count the actual records within each table.
I'm hoping someone can help me with a query design to count all records (rows) within each table of an Access database. For example, I have about 20 tables and I would like to list the table name (MSysObjects.Name)and the total count of records within each table (count(*) as TtlRecs). My code I attempted was:
Code:
SELECT MSysObjects.Name, count(*) as TtlRecs
FROM MSysObjects
WHERE (((MSysObjects.[Type])=1)
GROUP BY Name
ORDER BY 1;
The results produce each table name but the count is just showing 1. I'd appreciate any help on adjusting the query to count the actual records within each table.