popskie
Oct 19th, 2005, 09:06 PM
hi,
I have a connection in vb6 and dbase works good.
DbPath = "Microsoft Dbase driver (*.dbf)"
With Cn
.ConnectionString = "driver={" + DbPath + "};dbq=D:\INS2002\DBF"
.Open
End With
but what is wrong of my code when i transfer this code to c# it appears an error.
string DbPath = "Microsoft Dbase driver (*.dbf)";
OleDbConnection dbcon = new OleDbConnection();
dbcon.ConnectionString ="driver={" + DbPath + @"};dbq=D:\INS2002\DBF";
dbcon.Open();
Anyone about this.
note : pls see picture attachment.
Popskie
I have a connection in vb6 and dbase works good.
DbPath = "Microsoft Dbase driver (*.dbf)"
With Cn
.ConnectionString = "driver={" + DbPath + "};dbq=D:\INS2002\DBF"
.Open
End With
but what is wrong of my code when i transfer this code to c# it appears an error.
string DbPath = "Microsoft Dbase driver (*.dbf)";
OleDbConnection dbcon = new OleDbConnection();
dbcon.ConnectionString ="driver={" + DbPath + @"};dbq=D:\INS2002\DBF";
dbcon.Open();
Anyone about this.
note : pls see picture attachment.
Popskie