My "more than one file" suggestion was to avoid having to compact: rather
than compacting your existing database, create a new one, export the data
from the existing one, then delete the old one. As I said, though, I don't
know for sure whether this would be faster than compacting.
Look up CompactDatabase (no space) in the help file to find out details
about using the DAO CompactDatabase method (you need to be in the VB Editor
when you do this).
In a nutshell, you use:
DBEngine.CompactDatabase olddb, newdb
Another alternative to the DAO CompactDatabase method is to use JRO (Jet
Replication Objects). There's a KB article that explains how to use it at
http://support.microsoft.com/?id=230501
--
Doug Steele, Microsoft Access MVP
(no private e-mails, please)
David McKnight said:
The temporary file does go to the 2 GB limit and I get an error at that
point. What is DBMS? Database managment system?
You suggest using more than one file - what way do you suggest is the best
way to do this?
Regarding the 2GB limit if I compressing periodicly I should never get
there
( the file increases by about 2000 KB per loop). What is the DAO
compactDatabase method you mentioned?
David McKnight