Not a valid password

iyappan

New member
Joined
Sep 23, 2015
Messages
4
Programming Experience
Beginner
I'm trying to read and Write the datagridview using .accdb files through oledb connection . when i Run the application it Showing error like " Not a valid password " .i check the database test connection in the connection properties..That also shows "Test Connection succeeded ",then why the error is coming ???

VB.NET:
my connectString is[TABLE]
[TR]
[TD="class: number"]
[/TD]
[TD="class: content"] [/TD]
[/TR]
[/TABLE]

[TABLE]
[TR]
[TD="class: number"]
[/TD]
[TD="class: content"]   Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\myFolder\myAccessFile.accdb;[/TD]
[/TR]
[/TABLE]

[TABLE]
[TR]
[TD="class: number"]
[/TD]
[TD="class: content"]Persist Security Info=False;[/TD]
[/TR]
[/TABLE]
 
Sounds like you need to be using a connection string that sends a password to the database:
VB.NET:
Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\myFolder\myAccessFile.accdb;Jet OLEDB:Database Password=YourDBPasswordHere;
Just replace "C:\myFolder\myAccessFile.accdb" with your database file location and "YourDBPasswordHere" with the password for the database.
 
Back
Top