Compact a secured db

C

Connie

I have used a db that opens a form where you enter the full path, including
db name that you want to compact. It works fine as long as the db you are
compacting is not secured. The code is using the CompactDatabase method of
the DBEngine
object. I tried passing the full path including /wrkgrp "path to mdw" (like
you would in a shortcut) to the olddb part of the syntax but I get "Not a
valid filename". Any suggestions on how to compact via code?

BTW, this was created back in Access97 but has been converted up to XP.

TIA
Connie
 
J

Joan Wild

Connie said:
I have used a db that opens a form where you enter the full path, including
db name that you want to compact. It works fine as long as the db you are
compacting is not secured.

Actually it works if you are joined to the right workgroup. So you can
start a session of Access, where you login using the correct mdw. Then open
your db/form and you should be able to compact just fine.
 
C

Connie

Thank you Joan that worked great!!

Joan Wild said:
Actually it works if you are joined to the right workgroup. So you can
start a session of Access, where you login using the correct mdw. Then open
your db/form and you should be able to compact just fine.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top