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.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
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.
 
Upvote 0
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.
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,192
Members
449,072
Latest member
DW Draft

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
Back
Top