B
beckerttech
Compact and repair (called by code - see below) occasionally fails
after creating the db1.mdb copy and deleting the original MDB. The
error message is: Microsoft Access can't delete myDatabase.mdb after
compacting it. The compacted database has been named db1.mdb.
The original database has indeed been deleted. Fortunately db1.mdb is
there can be renamed and runs fine. It can be compacted with out
issue.
On average the database can run for several days before having this
error. Sometime the error will occur with in a few times of
restarting the application.
The major components of the database process is to every 30 minutes
24x7 download a file from SAP, write out multiple text files and then
run an external FTP program to upload all of these files.
I wrote a small database that does nothing but start up and compact
and repair itself with the same code below and it compacted itself
several thousand times over the course of a few days with out having
this error.
Thoughts?
---------------------------------------
Compact code
CommandBars("Menu Bar"). _
Controls("Tools"). _
Controls("Database utilities"). _
Controls("Compact and repair database..."). _
accDoDefaultAction
after creating the db1.mdb copy and deleting the original MDB. The
error message is: Microsoft Access can't delete myDatabase.mdb after
compacting it. The compacted database has been named db1.mdb.
The original database has indeed been deleted. Fortunately db1.mdb is
there can be renamed and runs fine. It can be compacted with out
issue.
On average the database can run for several days before having this
error. Sometime the error will occur with in a few times of
restarting the application.
The major components of the database process is to every 30 minutes
24x7 download a file from SAP, write out multiple text files and then
run an external FTP program to upload all of these files.
I wrote a small database that does nothing but start up and compact
and repair itself with the same code below and it compacted itself
several thousand times over the course of a few days with out having
this error.
Thoughts?
---------------------------------------
Compact code
CommandBars("Menu Bar"). _
Controls("Tools"). _
Controls("Database utilities"). _
Controls("Compact and repair database..."). _
accDoDefaultAction