I need to get data from a table in .dbf format. I try importing it,
but get "external table not in expected format".
So I tried this VB code to see if I could get at my records with ADO
(which I am very new to)
"
With cnn1
..Provider = "microsoft.jet.oledb.4.0"
..Open "dBase
IV;HDR=NO;IMEX=2;DATABASE=C:\projects\leshrc\urs;T ABLE=needlx#dbf"
End With
With rst1
..ActiveConnection = cnn1
..CursorType = adOpenDynamic
..CursorLocation = adUseClient
..LockType = adLockOptimistic
..Open strSQL
End With
"
and I got the same "external table not in expected format"
so I poked around the internet, and it said this is probably because
the table is in a higher version of foxpro. I learned I should
download and install the MS foxpro data provider, which I did. I
tried the same thing with the same Error.
Then I tried changing provider to
"
With cnn1
..Provider = "Provider=VFPOLEDB.dll"
..Open _
"dBaseIV;HDR=NO;IMEX=2;DATABASE=C:\projects\leshrc \urs;TABLE=needlx#dbf"
End With
etc
"
This time I got "Provider cannot be found. It may be improperly
installed"
Are there steps I am missing? How do I get at the data in that table?