ADO. Populating MDB from CSV returns all records with null values.

J

Jeff Budden

Hi, I am a bit stuck. I have a routine that executes a sql statement similar
to

Select Field1, field2, field3 INTO tbltablename IN MDB_location from
CSV_Location

My connection string is

strCSVConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source='" & Fpath &
"';Extended Properties='text; HDR=Yes; FMT=CSVDelimited';"

Where fPath is the CSV file path

I am quite sure my SQL syntax is good. Is it someting with the connection
string?

The CSV contains nearly 30,000 records. The Table generates and the number
of records comes over equal to the rows in the csv. However all fields for
all records are null. I confirmed this by creating an ADO recordset and
checked the recordcount and the values in recordset.fields(x).value

Thoughts?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top