Microsoft Access 2003

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there an easy way to determine the size of a table in a Access Database. I
have a database that might be reaching the max how can I check this before it
happens.
 
Hi Les,

There's no easy way.

Is there an easy way to determine the size of a table in a Access Database. I
have a database that might be reaching the max how can I check this before it
happens.
 
The size of a table is limited to by the size of the database (2 gigabytes
in Access tables). So you could grab the size of the database if you want a
warning on when the database size is being reached you could monitor the
database where the table resides.

Determining/estimating the actual size of the table is almost impossible.

You can use VBA to get the file length, for example the following works in
the Immediate window

?FileLen("T:\Newsgroup Answers_2K.mdb") returns 30650368 as the number of
bytes. One problem with this could be that FileLen may not be updated while
the file is in use. You will have to test.

--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..
 
Thank you
--
Les


John Spencer said:
The size of a table is limited to by the size of the database (2 gigabytes
in Access tables). So you could grab the size of the database if you want a
warning on when the database size is being reached you could monitor the
database where the table resides.

Determining/estimating the actual size of the table is almost impossible.

You can use VBA to get the file length, for example the following works in
the Immediate window

?FileLen("T:\Newsgroup Answers_2K.mdb") returns 30650368 as the number of
bytes. One problem with this could be that FileLen may not be updated while
the file is in use. You will have to test.

--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..
 
Back
Top