I am reading DBF Files and I keep getting the above error. I think I have narrowed the problem to the size of the DBF file name.
For example, when I feed a file name like 30844 C AHA AARP.dbf to ADO for the connection it bombs out with the error but when I feed in a smaller file name like Testit.dbf it works fine. Any ideas?
P.S. Here is my code:
Set conn = New ADODB.Connection
Set rs = New ADODB.Recordset
conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & Path & ";Extended Properties=dBASE 5.0;User ID=;Password="
List1.Clear
List2.Clear
On Error GoTo errhandler
rs.Open FileName, conn, adOpenForwardOnly, adLockReadOnly, adCmdTable
Swi
For example, when I feed a file name like 30844 C AHA AARP.dbf to ADO for the connection it bombs out with the error but when I feed in a smaller file name like Testit.dbf it works fine. Any ideas?
P.S. Here is my code:
Set conn = New ADODB.Connection
Set rs = New ADODB.Recordset
conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & Path & ";Extended Properties=dBASE 5.0;User ID=;Password="
List1.Clear
List2.Clear
On Error GoTo errhandler
rs.Open FileName, conn, adOpenForwardOnly, adLockReadOnly, adCmdTable
Swi