Solved

Accessing password-protected ACCESS database

Posted on 1998-09-10
6
128 Views
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?
0
Comment
Question by:wsanchez
6 Comments
 

Accepted Solution

by:
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 -
'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
 
LVL 14

Expert Comment

by:waty
Comment Utility
Depending if you use ODBC, or DAO
0
 

Author Comment

by:wsanchez
Comment Utility
thanks.
0
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

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

Vince
0
 

Expert Comment

by:indranil
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 -
UID=;PWD=;
and hope for the best.
0
 

Expert Comment

by:PIBM
Comment Utility
What if you don't have a DSN ?
0

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