Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 139
  • Last Modified:

Accessing password-protected ACCESS database

How do I read entries in a password protected ACCESS database file?  How do I pass the password to open it using VB?
0
wsanchez
Asked:
wsanchez
1 Solution
 
indranilCommented:
Assuming you are using the Data object in your form and ODBC, the database can be accessed by passing the connect string in the Connect property of thae Data object. This looks somewhat like -
'DBQ=c:\access\test.mdb;DSN=mydb;UID=indranil;PWD=yahoo'
The string should match the entry you have used while registering with ODBC.
0
 
watyCommented:
Depending if you use ODBC, or DAO
0
 
wsanchezAuthor Commented:
thanks.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
vincerubusCommented:
What if I do no know the UID and PWD ? ? ?

Vince
0
 
indranilCommented:
You do not have any choice then. Normally the access files do not have a password protection and your best bet is to try -
UID=;PWD=;
and hope for the best.
0
 
PIBMCommented:
What if you don't have a DSN ?
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now