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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing the Password 1

Status
Not open for further replies.

dotnetprogrammer

Programmer
Aug 17, 2000
77
0
0
US
I have a MS Access 97 database Macro that I need to run through my vb code. The file is password protected. Could anyone tell me how do I pass PASSWORD information to the MS Access 8.0 Object, so that the database will open without prompting for the password?
Thanks,
fred
 
I believe you can pass a password in with the connection string. Difference between a madman and a genius:
A madman uses his genius destructively,
A genius uses his madness constructively.
 
Hi,

To pass the password and userid you need to put them in the connection string. A nice way to do this is to create a file with extension .udl. Dubbleclick it and you get a wizard that makes the conn. string for you. Save it and open the UDL file in notepad.
And there's your connection string.

Good luck,
Vince
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top