B
benatom
I have an ADO connection string like this:
cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
& strPath & "\;Extended Properties=""text;HDR=Yes;FMT=Delimited
(,)"";Persist Security Info=False"
if strPath = "X:\FolderData"
the query
Select f1, f2, f3 From X:\FolderData\data.csv"
will open.
if strPath = "\\ServerName\FolderData\"
the query:
Select f1, f2, f3 From \\ServerName\FolderData\data.csv
will fail [syntax error in FROM clause]
I would like to be able to use the second method. Suggestions?
cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
& strPath & "\;Extended Properties=""text;HDR=Yes;FMT=Delimited
(,)"";Persist Security Info=False"
if strPath = "X:\FolderData"
the query
Select f1, f2, f3 From X:\FolderData\data.csv"
will open.
if strPath = "\\ServerName\FolderData\"
the query:
Select f1, f2, f3 From \\ServerName\FolderData\data.csv
will fail [syntax error in FROM clause]
I would like to be able to use the second method. Suggestions?