Count Tables

G

Guilherme Moita

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

Thanks in advance.
 
L

losmac

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
 
Top