Changing database password

L

Len

I've created a form allowing user to change database password in the Access
2002 application. When running the following statement

db.NewPassword CurrentPassword, NewPassword

I've got the message:

"Cannot change password on shared open database"

What can be wrong?
Thanks.
 
J

Joan Wild

Len said:
I've got the message:

"Cannot change password on shared open database"


A user needs to have the mdb opened exclusively in order to change the
database password.
 
L

Len

When I select the File/Open menu choice and click the Open button, the Open
Exclusive option is already check marked. So, I just select this option
expecting that database will be opened exclusively. Nevertheless, I am not
able to change the password.

By the way, I am able to compact the opened database, which requires the
database to be opened exclusively as well.
 

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