Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need List of All Tables and a Record Count

Status
Not open for further replies.

rdpress

Technical User
Aug 16, 2002
24
0
1
US
I have an Access 2000 mdb be and would like to create a table
that will contain a two field record (TableName and RecordCount) for each table in the mdb.

Any suggestions would be appreciated.

I've already created a table listing the names using a make query on MSysObjects.

thanks much
 
This might not be the most efficient but you can create a query like:
Code:
SELECT msysobjects.Name, msysobjects.TYPE, DCount("*",[name]) AS RecCount
FROM msysobjects
WHERE (((msysobjects.Name) Not Like "Msys*") AND ((msysobjects.TYPE) In (1,4)));

Duane
Hook'D on Access
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top