In Access, I clicked File>Open>Open Exclusive>MyDatabaseName
I then clicked Tools>Set Password and then closed the database.
In VB .NET 2005, in the Server Explorer I right click on the database and then click on Modify Connection for the database. Under Advanced, I entered MyPassword in the property of JET OLEDB: Database Password. I then click OK and on the Modify Connection screen click on Test Connection. A Message Box pops up saying Test Connection Succeeded.
The problem occurs when running my program. On my main form, I click on a button which opens up an instance of the form that is bound to my database.
Here is the Load Form info for the database form:
The above Me.Dictionary.... code generates the following error:
OleDbException was unhandled
The detail is: {"Not a valid password."}
As per a previous forum posting, http://www.vbdotnetforums.com/showthread.php?t=14276&highlight=password
I could find the code:
Since I am a low level programmer, I have very little coding other than using the various automatic code generation methods for binding my db, etc. I see no place in the various properties screens where I could actually enter this kind of connection string, other than modifying the password property as I have done.
Is there an easy way to solve this problem? Any assistance would be appreciated.
I then clicked Tools>Set Password and then closed the database.
In VB .NET 2005, in the Server Explorer I right click on the database and then click on Modify Connection for the database. Under Advanced, I entered MyPassword in the property of JET OLEDB: Database Password. I then click OK and on the Modify Connection screen click on Test Connection. A Message Box pops up saying Test Connection Succeeded.
The problem occurs when running my program. On my main form, I click on a button which opens up an instance of the form that is bound to my database.
VB.NET:
Private Sub Button62_Click_2(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button62.Click
Dim myDictionaryfrm As New DictionaryMDBfrm
myDictionaryfrm.Show()
myDictionaryfrm.TopMost = True
Me.Hide()
End Sub
VB.NET:
Private Sub DictionaryMDBfrm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.DictionaryTableAdapter.Fill(Me.PhoneterciseDBDataSet1.dictionary)
End Sub
OleDbException was unhandled
The detail is: {"Not a valid password."}
As per a previous forum posting, http://www.vbdotnetforums.com/showthread.php?t=14276&highlight=password
I could find the code:
VB.NET:
Provider= Microsoft.Jet.OLEDB.4.0;Data Source = c:\mydatabase.mdb;Jet OLEDB; Database Password=MyDbPassword;
Is there an easy way to solve this problem? Any assistance would be appreciated.