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
Solved

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

Posted on 2002-03-23
2
151 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
2 Comments
 
LVL 70

Accepted Solution

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

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…

856 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