Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening an Access DB with password using DAO

Status
Not open for further replies.

Catrina

Programmer
Feb 11, 2000
70
US
I have an app that is usin DAO (I am Used to ADO), and I'm having trouble with opening the passworded database.
I am getting the message Not a Valid Password when I know it is. Here is my code:

Set db = DBEngine(0).OpenDatabase("pdp.mdb", , , "Jet OLEDB;password=mypass")

What am I doing wrong? Thanks in advance

Catrina

 
Hi Catrina,

i use ADO to open Access Database, hope this will help you

Set gConDyn5 = New ADODB.Connection
Set gRecDyn5_Client = New ADODB.Recordset
wSQL = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source='yourMDB.mdb';Mode=Read;Persist Security
Info=False;Jet OLEDB:Database Password=/*"
gConDyn5.Open wSQL
_____________________________
Hugues Gauthier P.A,DEC
Programmeur Analyste
Progitech GS Inc.
hugues.gauthier@progitech.com
hugues_gauthier@hotmail.com
Tel. : (418) 698-4383 #19
Fax.: (418) 698-8633
---------------------
ICQ: 2151800
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top