Temporary tables causing bloating

jedda

New Member
Joined
May 19, 2012
Messages
12
Hi,

I have a design problem.

I have an application that uses VBA and ADO to connect an Excel front end to a JET back end. It's far from ideal, but it's the best solution I can come up with given the circumstances.

The back end consists of a number of permanent tables, but also 3 temporary tables that have all records deleted and repopulated daily.

This is bloating the back end. I'm compacting frequently, but I'd like to work around this issue.

I've thought about splitting the back end, but I need to run queries that involve both the permanent and temporary tables.

Any help would be appreciated.
 

Some videos you may like

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
56,616
Office Version
  1. 365
Platform
  1. Windows
This is bloating the back end. I'm compacting frequently, but I'd like to work around this issue.
How frequently? I have many databases set to "Compact on Close", so it does it automatically every time the database is closed.

I've thought about splitting the back end, but I need to run queries that involve both the permanent and temporary tables.
Splitting the back-end shouldn't prevent that. You can just link them altogether in whatever database you are performing your queries in.

If the size of your data is really becoming an issue, you may need to investigate using a different back-end to house your data tables, like SQL or Oracle.
 

jedda

New Member
Joined
May 19, 2012
Messages
12
Joel, thanks for your reply.

I'm compacting the database daily using JRO by manually running a separate macro in the Excel front end.
I've held off on automatically compacting due to the possibility of other front ends competing for use of the database, but it is an option.

So far I have not had any corruption issues, but I still regard my present approach as being poorly designed.

I'm looking into linking tables from different databases using ADO at the moment. (Can anyone link to a good walkthrough of how this is done?)

Unfortunately in this case I am unable to use a client-server DBMS. It would definitely be my preference to get someone to set this up for me if this were possible.
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
56,616
Office Version
  1. 365
Platform
  1. Windows
I'm compacting the database daily using JRO by manually running a separate macro in the Excel front end.
You will need to compact the database holding your temporary tables to keep it from bloating (wherever) they reside.

I'm looking into linking tables from different databases using ADO at the moment. (Can anyone link to a good walkthrough of how this is done?)
If all the tables reside on the same network in other Access databases, you should be able to link to them directly through the Access table objects. I don't think you need any special ADO code to do that.
 

Watch MrExcel Video

Forum statistics

Threads
1,127,431
Messages
5,624,756
Members
416,047
Latest member
rayford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top