DB Lock

am_sarath

Registered User.
Local time
Today, 11:55
Joined
Sep 19, 2001
Messages
29
Hello,

the following is the procedure which I've written to open my db.

Set db = OpenDatabase(Application.CurrentProject.Path + "\myproject.mdb", False, False)

But,the database is getting locked and I am able to edit the forms and code before running this procedure.why is it happening?
could any one pls suggest me.

Thanks
sarath
 
Just use this instead, much easier and foolproof(ish)

Set db = CurrentDB
 

Users who are viewing this thread

Back
Top Bottom