PDA

Click to See Complete Forum and Search --> : [RESOLVED] c# cannot connect to dbase


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

fret
Oct 19th, 2005, 10:13 PM
maybe this would help.

here (http://www.connectionstrings.com/)

popskie
Oct 19th, 2005, 10:22 PM
thanks fret. do you have a phone no. so that i can call u.

fret
Oct 19th, 2005, 10:28 PM
I'm in the Philippines :wave:

nebulom
Oct 20th, 2005, 01:42 AM
[Out of topic]

Maybe Mr. Popskie is a Mandauehanon?

popskie
Oct 20th, 2005, 03:50 AM
tag an ka part.

fret
Oct 20th, 2005, 10:09 PM
maybe we can discuss it here.
http://www.vbforums.com/showthread.php?p=2212662#post2212662
or
http://www.vbforums.com/showthread.php?t=352927 :afrog: