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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Feb 14, 2014, 12:23 AM EST
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");