Accessing password-protected ACCESS database

Posted on 1998-09-10
Last Modified: 2011-09-20
How do I read entries in a password protected ACCESS database file?  How do I pass the password to open it using VB?
Question by:wsanchez

Accepted Solution

indranil earned 20 total points
Comment Utility
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 -
The string should match the entry you have used while registering with ODBC.
LVL 14

Expert Comment

Comment Utility
Depending if you use ODBC, or DAO

Author Comment

Comment Utility
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.


Expert Comment

Comment Utility
What if I do no know the UID and PWD ? ? ?


Expert Comment

Comment Utility
You do not have any choice then. Normally the access files do not have a password protection and your best bet is to try -
and hope for the best.

Expert Comment

Comment Utility
What if you don't have a DSN ?

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now