C# and MS Access connection and access in windows application
Posted on 2008-02-02
I need a simple code to connect my program to a db. And another to retrieve data from a single cell.
So far the only thing I've done is include System.Data.OleDb and inserted the following code after
clsConnection = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\\Projects\app1\app1\\DB1.mdb;Persist Security Info=False");
I don't know why I keep receiving a runtime error:
Format of the initialization string does not conform to specification starting at index 56.