MDB Size increases rapidly

E

Ed Kopta

I have an Access 2002 mdb that increases in size about 6-12MB when I use a
particular form that automates a data-entry operation. Highlights of this
operation are:

1) Create two temporary tables (one a subtable of the other) by using VBA to
copy tabledefs
2) Get data by opening Excel in the background and cycling through targeted
cells
3) Using action queries to fill data from temp tables to original ones, and
also to fill other tables with new data (these other tables hold text values
from the worksheet that are related to the original tables by primary key
values).

I understand that I can always compact very frequently or code a menu
command to do so, but I was wondering if there are any other general
principles involved that would allow me to address this issue more
elegantly. Maybe there are some classic no-nos involved with the above
operations. Has anyone dealt with problems like this?

Thanks for any help you can give
-Ed Kopta
 
M

Marshall Barton

Ed said:
I have an Access 2002 mdb that increases in size about 6-12MB when I use a
particular form that automates a data-entry operation. Highlights of this
operation are:

1) Create two temporary tables (one a subtable of the other) by using VBA to
copy tabledefs
2) Get data by opening Excel in the background and cycling through targeted
cells
3) Using action queries to fill data from temp tables to original ones, and
also to fill other tables with new data (these other tables hold text values
from the worksheet that are related to the original tables by primary key
values).

I understand that I can always compact very frequently or code a menu
command to do so, but I was wondering if there are any other general
principles involved that would allow me to address this issue more
elegantly. Maybe there are some classic no-nos involved with the above
operations. Has anyone dealt with problems like this?


Creating tables and deleting/adding records is a major cause
of bloat. This kind of operation should be avoided if at
all possible. Unfortunately, Import operations often do
benefit from th use of temp tables.

If you can not find a reasonable way to avoid them, then you
should place them in a temporary database. Here's a good
way to manage the ins and outs of all this:
http://www.granite.ab.ca/access/temptables.htm
 
D

David C. Holley

You may also want to consider procedures. Do you have to import the data
hourly or will daily do?
 

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