Password Protected DB.

vbjohn

Registered User.
Local time
Yesterday, 21:02
Joined
Mar 22, 2002
Messages
75
VB to Access - Password Protected DB.

I am trying to connect to a Access 2000 DB from Visual Basic 6.0. Is there a way that I can pass in a password for the end user that would not have to type it in?

This is how I am accessing it:

Private appAccess As Access.Application

Set appAccess = New Access.Application

appAccess.Visible = False
appAccess.OpenCurrentDatabase "C:\DB\Apartment.mdb", True

With appAccess.DoCmd
.OpenReport "Property Information", acViewPreview
.Maximize
End With

appAccess.Visible = True

John-
 
Last edited:

Users who are viewing this thread

Back
Top Bottom