PROBABLY Very Simple???

abesimpson

Active Member
Joined
May 3, 2003
Messages
435
2 Questions

1 I am working with a HUGE database, so very thing that I am doing takes considerable time to execute. Weekly I exprort the results of my database to a CSV file. I do this by running the Wizard and following instructions. Each step of the Wizard operation takes about 45 minutes to execute before instructiing me to click next, finish, etc. I am not compaining about the time Access needs to process the info, just wondering if there is a better way to export the result of a query to a CSV file, something that I can execute and walk away from.

2 Weekly I import new data to the database. To strip the old data I the empty database under a new name (retaining the database structure), delete the old database, then rename the empty database to the "OLD" database name. Is there an easier way to strip the data from the database?

As always, thanks in advance.

abe
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
How many records do you have? It sounds like you have a very decent case to upsize to SQL Server or Oracle.
 
Upvote 0
The database is about 1.5gig.

This is comprised of a couple of tables about 1meg each and several somwhat smaller tables manipulated through various queries.

From your question, I can guess that I am pressing the limits of Acess, but I am not able to invest significant $'s in software so am not sure if there will be s solution for me.

Thanks for the speedy reply.
 
Upvote 0
How much NEW data do you import each week ?

When you delete the OLD data Access does not delete it it just flags the data for deletion, you need to compact the database as well or it just continues to grow.

what's your PC spec ? maybe you need to upgrade this, more memory ? Upsizing to SQL Server may be using a sledge hammer to crack a nut, but then again it might be what you need to do!

My advice would be to try the deletion of old data and then compact the DB.

HTH
 
Upvote 0
If your db is over 1000 times the size of your largest table, I think you need to compact it. Go to Tools | Database Utilites | Compact Database (Access 97) or Compact and Repair Database (higer versions).
This could take a while to run but you will end up with: (1) a much smaller DB (2) quicker performance and (3) less chance of corruption

Denis
 
Upvote 0
I'll try compacting and report my results back.

Any suggestions for a simple way to empty the tables?

thanks

abe
 
Upvote 0
If you need to get rid of all data from a table, try this:

New query, design view
Pick your table from the list. OK.
In the grid, double-click the asterisk to select all fields.
Run the query -- you should see all records and fields.
Switch to SQL View.
Change SELECT to DELETE
Save the query as qryDELETE_MyTable (change MyTable to suit)
Close
To clear the data, double-click the query icon. You will be prompted about deleting X number of records. OK, and they are history.

Denis
 
Upvote 0
and if you don't want to be asked "Are you Sure" each time there is a global setting you can change .... just can't rememmber where it is!! sorry
 
Upvote 0
An 'empty' database should be tiny - varies by the code/queries setup, but if it's over 1 MB, compact it. Pay attention to the before/after file size.

Access is a packrat for file size. Think of it as an accountant that does everything you ask but makes extensive notes on everything you do - that had to buy a half dozen file cabinets to help organize a sorting procedure (to run a query) but those cabinets are still sitting around even and cluttering the office (workspace) although the query was deleted a long time ago. Deleting objects does not delete the space they required to store. That's what compacting does.

Based on re-reading your message: Compacting has to be the problem. You're copying the full database to a new name, deleting the information and saving it, then renaming the now "empty" database to the live name.

Your current copy of access is 'cluttered' by everything that has been done in it since the day you created it (or last compacted it).

Mike
 
Upvote 0

Forum statistics

Threads
1,221,631
Messages
6,160,942
Members
451,679
Latest member
BlueH1

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