fortres2
Programmer
- Nov 27, 2008
- 1
Hi All,
I've got recordset which selects data from text file:
dim rs1 as new ADODB.Recordset
dim strSaveFilename as string
strSaveFileName = "C:\Program Files\Example folder\test.txt"
rs1.Open "SELECT * from [" & strSaveFilename & "] ;", _
connTXT, adOpenStatic, adLockReadOnly, adCmdText
but it works only if there are no spaces in strSaveFileName path. (it will fail in this example)
Please advise
I've got recordset which selects data from text file:
dim rs1 as new ADODB.Recordset
dim strSaveFilename as string
strSaveFileName = "C:\Program Files\Example folder\test.txt"
rs1.Open "SELECT * from [" & strSaveFilename & "] ;", _
connTXT, adOpenStatic, adLockReadOnly, adCmdText
but it works only if there are no spaces in strSaveFileName path. (it will fail in this example)
Please advise