Connecting to an mdb file using OdbcConnection in VS2013
问题 I am trying to connect to an mdb file from C# 2013 using OdbcConnection. I used to have Office 2000 on my Windows 7 and Windows 8 machines, but I have upgraded to Office 2013 on both and it now longer works on either. My database is still in mdb format. Here's the code: const string myConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Path\Mydb.mdb"; OdbcConnection connRL = new OdbcConnection(); connRL.Open(); Whatever I have tried I get the following error: ERROR [IM002]