Possible Duplicate:
Opening csv-File via ADO-connection - Column Limitation to 255 / or just use another file type?
I have the following code to open a csv file as a record set
Set cN = New ADODB.Connection
Set RS = New ADODB.Recordset
cN.Open ("Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=C:\data;" & _
"Extended Properties=""text; HDR=Yes; FMT=Delimited; IMEX=1;""")
RS.ActiveConnection = cN
RS.Source = "select * from myFile.csv"
The above code works for files which have less than 255 columns. However, if my CSV file has more than 255 columns, I get only the first 255 columns of data. Is there any alternate way of opening a CSV file into a ADODB recordset?