Hello Friend,
Instead of using Data Control, You can use the following code to open a
access mdb with password (="abc") using Visual Basic.
Dim db As Database
Set db = OpenDatabase("C:\Test97.mdb", False, False, ";pwd=abc")
where Test97 is a access database.
Gaurav Shah
(Sr. Software Engineer)
Gates Information Systems.
----- Original Message -----
From: "Chuks Anoshiri @NgexMail" <chuks@n...>
To: "professional vb" <pro_vb@p...>
Sent: Tuesday, July 17,2001 9:09:AM
Subject: [pro_vb] MSAccess, DAO and password
> Hello Friends,
>
> I'm new to VB and I use VB5 to develop my applications. I have an MS
Access
> database file which I open from VB5 through DAO, I want to findout how I
can
> open this database with the VB Data control if I protect the database with
> password.
>
> Pls, I'll appreciate any help
>
> Chuks
>
>
>
>