Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
All-Star
33865 Points
8772 Posts
Moderator
May 01, 2012 02:05 PM|LINK
Try to make sure that your filename for the database is correct and you're using the correct path. Like this:
string connectString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=db.accdb;Persist Security Info=True;"; if its in the root, in the data directory:
string connectString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|db.accdb;Persist Security Info=True;";
bbcompent1
All-Star
33865 Points
8772 Posts
Moderator
Re: Database connection help, retreive email addresses from database, no connection.
May 01, 2012 02:05 PM|LINK
Try to make sure that your filename for the database is correct and you're using the correct path. Like this:
string connectString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=db.accdb;Persist Security Info=True;"; if its in the root,
in the data directory:
string connectString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|db.accdb;Persist Security Info=True;";