Cannot open password protected MDB file using DAO
From: Venkat (vreddyg_at_hotmail.com)
Date: 04/12/04
- Next message: Allen Myers: "Re: Relationships with same primary key but multiple different foreign keys"
- Previous message: John: "Workgroup Security"
- Next in thread: Matti: "Re: Cannot open password protected MDB file using DAO"
- Reply: Matti: "Re: Cannot open password protected MDB file using DAO"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 12 Apr 2004 13:24:13 +0530
Hi,
I've developed an application (VB 6.0, DAO 3.6 Object library, Access 2000).
I need to password protect the MDB file. And I made the changes in
application also, where I was opening the database.
Code is as follows:
Dim db As Database
Set db = OpenDatabase("c:\db1.mdb", False, False,
"ODBC;UID=admin;pwd=hello")
But I get the following error:
Run-time error '3151':
ODBC -- Connection to 'c:\db1.mdb' failed.
But when I open the db without password (reset in db also), it opens.
Dim db As Database
Set db = OpenDatabase("c:\db1.mdb", False, False, "")
Can anybody please help me how to open a password protected MDB file using
DAO in VB 6.0?
Thanks in advance
Venkat
- Next message: Allen Myers: "Re: Relationships with same primary key but multiple different foreign keys"
- Previous message: John: "Workgroup Security"
- Next in thread: Matti: "Re: Cannot open password protected MDB file using DAO"
- Reply: Matti: "Re: Cannot open password protected MDB file using DAO"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|