i used below connection string but it's not working.
con = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=D:\Scholarship\Scholarship1.mdb");
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Feb 14, 2014, 5:23 AM
con = new OleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=D:\Scholarship\Scholarship1.mdb");
Alternatively, you can double the backslashes:
con = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=D:\\Scholarship\\Scholarship1.mdb");