Solved

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

Posted on 2002-03-23
2
148 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 69

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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 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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

758 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

19 Experts available now in Live!

Get 1:1 Help Now