I am not able to find "Data Source" when i give the connection for a MS Access plz tell me where I went wrong in thee below shown code snippet
OleDbConnection connection = new OleDbConnection ();
connection = new OleDbConnection ("provider=Micr osoft.Jet.OLEDB .4.0",Data Source ="C:\\Docume nts and Settings\\Admin istrator\\My Documents\\Data base1.accdb;");
As I have used MS Access 2007 the extension is .accdb then here what has to be done?
OleDbConnection connection = new OleDbConnection ();
connection = new OleDbConnection ("provider=Micr osoft.Jet.OLEDB .4.0",Data Source ="C:\\Docume nts and Settings\\Admin istrator\\My Documents\\Data base1.accdb;");
As I have used MS Access 2007 the extension is .accdb then here what has to be done?
Comment