I need to retrieve data from a CSV file and here is the code I have written:
var filenamecsv="D://Data.csv";
adoConn1.Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\;
Extended Properties='text;HDR=Yes;FMT=Delimited';");
adoRS1.Open("Select * From Data.csv",adoConn1,1,3);
However, when I run my project, I encounter the following error:
Microsoft JET Database Engine: The Microsoft Jet database engine could not find the object 'Data.csv'. Make sure the object exists and that you spell its name and the path name correctly.
What steps should I take to resolve this issue?