Change Database Password?

J

Joe

Hello all,
I am trying to find a way to change an access database password at run
time in VB2005.
I open the connection to the database as shown below:

objConnection = New OleDbConnection( _

"Provider=Microsoft.Jet.OLEDB.4.0;" & _

"Data Source=" & AppPath & "MyDatabase.mdb" & ";" & _

"Jet OLEDB:Database Password=" & DBPassword)

and it works well. I have created a button on the form to enable the user to
change the database password but I am having a problem figuring out how to
actually change the password at run time.

Can anyone give me a few pointers please?

Thanks
 

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