Count Tables

  • Thread starter Thread starter Guilherme Moita
  • Start date Start date
G

Guilherme Moita

Does anyone know how can I count the number of tables that
are currently in a Database?

Thanks in advance.
 
Sub CountTables()
MsgBox CurrentDb.TableDefs.Count
End Sub

This example return value: number of user tables + number of system tables
System tables by deault are unvisible. To change it go to
Tools->Options->View->System Objects
 
Back
Top