Hi,
I'm having some trouble opening a dbf file in my application. I'm
getting an oledb exception with the error message:
Message @"'C:\Work\comp310.dbf' is not a valid path. Make sure that
the path name is spelled correctly and that you are connected to the
server on which the file resides."
It is a valid path as the variable to the dbf is filled from an
openfile dialog. Here's the relevant code (pathName is
"C:\Work\comp310.dbf" in this case):
string dbfConnString = String.Format
("Provider=Microsoft.Jet.OLEDB.4.0;Data Source={0};Extended
Properties=dBase IV", pathName);
oleDA = new OleDbDataAdapter("Select * From myDBF", dbfConnString);
OpenDBF("myDBF");
private DataSet OpenDBF(string tableName)
{
oleDA.Fill(myDS, tableName);
return myDS;
}
Thanks in advance for any advice