Sep 11, 2003 #1 schembri Programmer Aug 29, 2003 8 MT I've Got An Ms Access database that i wish to lock but when i lock it my vb programm does not open it. the programm displays an error saying in valid password. can any one tell me how can i supply a password to the database through vb coding
I've Got An Ms Access database that i wish to lock but when i lock it my vb programm does not open it. the programm displays an error saying in valid password. can any one tell me how can i supply a password to the database through vb coding
Sep 11, 2003 1 #2 CCLINT Programmer Feb 22, 2002 3,802 DE How are you opening it in VB? ADO Adodc Data Control? DAO Data1 Data Control? ADO Connection Object? DAO Database Object? Upvote 0 Downvote
How are you opening it in VB? ADO Adodc Data Control? DAO Data1 Data Control? ADO Connection Object? DAO Database Object?
Sep 12, 2003 Thread starter #3 schembri Programmer Aug 29, 2003 8 MT i'm using DAO Database Object to connect to the database. Upvote 0 Downvote
Sep 12, 2003 #4 CCLINT Programmer Feb 22, 2002 3,802 DE Set MyDB = DBEngine(0).OpenDatabase(App.Path & "\" & App.EXEName & ".MDB", False, False, ";pwd=abc123" You may instead need to use something like ";User=Admin;pwd=abc123" Upvote 0 Downvote
Set MyDB = DBEngine(0).OpenDatabase(App.Path & "\" & App.EXEName & ".MDB", False, False, ";pwd=abc123" You may instead need to use something like ";User=Admin;pwd=abc123"