954,557 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to connect vb6 into a password protected .mdb?

Good day,

I have a system and it has a studentdatabase.mdb database, ive putted password into the .mdb file and now when I run the .exe file of my vb6 program it says
Not a valid password,

Question: How can I automatically put the password of the .mdb file when i clicked or start the vb6 program .exe? so my vb6 program can automatically access the database ".mdb file"?

xtianenikkian
Light Poster
39 posts since Sep 2008
Reputation Points: 11
Solved Threads: 3
 
Jx_Man
Nearly a Senior Poster
3,329 posts since Nov 2007
Reputation Points: 1,372
Solved Threads: 444
 

Depends whether you are using a data control (see the link in JX's post) or code. You need to supply the password in the connection string as well as the username to successfully log in to the access database.

[Edit]If I had looked further at the other posts I would have seen that it contains the answer, my bad.:)[Edit]

AndreRet
Senior Poster
3,922 posts since Jan 2008
Reputation Points: 334
Solved Threads: 350
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You