Access Object Counts

D

Dave Ruhl

Is there any way to query Access to get a count of forms,
tables, reports, and queries ? Thanks...
 
G

Graham R Seach

Dave,

CurrentProject.AllForms.Count
CurrentProject.AllMacros.Count
CurrentProject.AllModules.Count
CurrentProject.AllReports.Count

....for tables...
DCount("[Name]", "MSysObjects", "[Type] = 4")

....for queries...
DCount("[Name]", "MSysObjects", "[Type] = 5")

Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top