Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run-time error '3356'

Status
Not open for further replies.

davisto01

MIS
Jul 11, 2003
21
US
I'm trying to use VBA to compact a database on a sheduled timer. When I run the following code I get the error message:
You attempted to open a database that is already opened excluisvely by user 'Admin' on machine 'XXXXX'. Try again when the databse is available.
This happens with every database, even the one's with no specific admin access issues.

It seems that the only way to compact a database in Access 97 is to use the menues. I've tried to use the macro generator --> Run Command -> Compact -- but I get a similar error message.

Looking at what access does when I select compact from the menu, it looks as though it must close all windows before it can excecute the command.

Has anyone else run into this problem?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top