Solved

Opening a password-secured MS-Access Database

Posted on 1998-08-04
3
137 Views
Last Modified: 2010-05-03
I'm trying to open a local MS-Access 97 Database, (path is same as application, but that doesn't matter anyway)
When I had not password-locked the db, all I need was
    Set DB = OpenDatabase(DbaseName)

But now that I need the database to be more secured, I put in a password, but I don't know where to put it in the function call.
I think it's supposed to be in the connection string but I've tried the following, but it doesn't work, it says "Invalid Password".
    Set DB = OpenDatabase(Dbasename, , , ,"Pwd=MyDbPassword")

Any help would be greatly appreciated.
0
Comment
Question by:Shak
  • 2
3 Comments
 

Author Comment

by:Shak
ID: 1467765
Edited text of question
0
 
LVL 1

Accepted Solution

by:
DQ earned 50 total points
ID: 1467766
OpenDatabase(App.Path & "\my.mdb",False,False,";Pwd=" & pwd)
0
 

Author Comment

by:Shak
ID: 1467767
Thanks a LOT!
Real simple isn't it?
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

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…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

707 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

14 Experts available now in Live!

Get 1:1 Help Now