VB 6.0 and Access

M

Thread Starter

Markus Presser

Following message is given when error occures:

You attempted to open a database that is already opened exclusively by user 'admin' on machine 'N3K2Z1'. Try again when the database is available.

Following code is used in VB to open/print report:

acces_app.docmd.OpenReport "Reportname", acViewNormal.

Any hints, tips and tricks would be appreciated.

Markus
 
It appears that the database is locked. Check for a lock file with extension .ldb in the same directory as the mdb file with the same name as the mdb file.

If you find the file, delete it.
 
Top