I have a file in this format: xxxxxxx.csv.pgp.csv format and am trying to open it as a recordset with the following code:
Dim cnn As Connection
Set cnn = New Connection
cnn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & varPath & ";" & _
"Extended Properties=""text;HDR=Yes;FMT=Delimited;"";"
Dim rs As ADODB.Recordset
Set rs = New ADODB.Recordset
rs.Open "Select * from " & strSchema, cnn, , , adCmdText
This give me a file not found error. However I am able to open a file with just this format: xxxx.csv with no problems. Has anybody seen a .csv file with these added extensions and have any experience opening them up as an ADO recordset? My group is getting these files from another source and don't have control on the format they send them in.
Thanks for any advice you can provide.
Dim cnn As Connection
Set cnn = New Connection
cnn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & varPath & ";" & _
"Extended Properties=""text;HDR=Yes;FMT=Delimited;"";"
Dim rs As ADODB.Recordset
Set rs = New ADODB.Recordset
rs.Open "Select * from " & strSchema, cnn, , , adCmdText
This give me a file not found error. However I am able to open a file with just this format: xxxx.csv with no problems. Has anybody seen a .csv file with these added extensions and have any experience opening them up as an ADO recordset? My group is getting these files from another source and don't have control on the format they send them in.
Thanks for any advice you can provide.