Hi,
I am reading a csv file with using the following code
My csv contains various coulmns along with a phone column, I get the following error :Code:string selectSql = "SELECT * FROM ["+ fileName +"]"; OleDbDataAdapter da = new OleDbDataAdapter(selectSql,conn); DataSet ds = new DataSet("UItems"); da.Fill(ds);
when the phone number entered is: 00-0000-00001Code:Not a legal OleAut date
The error occurs when the .fill method is called for the dataAdapter. But surprisingly when the compile the exe and run it wont it give me this error.
The error comes up only in the case of debug mode.
![]()




Reply With Quote