Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Accessing password-protected ACCESS database

Posted on 1998-09-10
6
Medium Priority
?
138 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 

Accepted Solution

by:
indranil earned 60 total points
ID: 1434021
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
ID: 1434022
Depending if you use ODBC, or DAO
0
 

Author Comment

by:wsanchez
ID: 1434023
thanks.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Expert Comment

by:vincerubus
ID: 1434024
What if I do no know the UID and PWD ? ? ?

Vince
0
 

Expert Comment

by:indranil
ID: 1434025
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
ID: 2494695
What if you don't have a DSN ?
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

598 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