Solved

I have a database in MS Access which is password Protected and I wish access it

Posted on 2002-03-23
2
153 Views
Last Modified: 2010-05-02
I am using VB 6.0 and Access . Now the Database in Access is Password Protected and MS Access has Logon Name Admin
Password :- Password  (i.e this is to start MS Access)
Below is the code to logon to MS Access but I don't Know how to open the Password Protected Database .

Set conn = New Connection
            Dim path As String
            path = App.path & "\Expo2002.mdb"
            Set res = New Recordset
            Set comm = New Command
            Dim str As String    '//This is the connection string

 str = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
                    "Password=password;User ID=Admin;" & _
                     "Data Source= " & path & ";" & _
                     "Persist Security Info = True;" & _
 "Jet OLEDB:System database=C:\Windows\System\system.mdw"
               
           
            With conn
                    .CursorLocation = adUseClient
                    .Open str
                   
            End With
           
            comm.ActiveConnection = conn
           
           
            Exit Sub


Please treat this matter the most Urgent ..

0
Comment
Question by:arna
[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
2 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 100 total points
ID: 6891289
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 6891549
Which version of Access

There are many questions on this web site with an answer
Access 2000
http://www.experts-exchange.com/crystal/Q.20273716.html


http://www.experts-exchange.com/jsp/qShow.jsp?
ta=visualbasic&qid=20268832

http://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20246084

good luck
mlmcc
0

Featured Post

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!

Question has a verified solution.

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

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…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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 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…

729 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