Access compact and repair code

G

George Moore

Does anyone have code for the compact and repair process
that I can put in my application?
 
T

Tony Toews

Jeff Clark said:
doesn't work, says the application needs to be closed first
sigh

If you are trying to compact a backend from your frontend then you
must close all bound forms and reports as well as any recordsets you
may have open.

You can verify this during testing by looking for the presence of the
ldb file in the backends folder.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
 
Top