
connecting a dBase III - Database using Ado
'dbase Connection
With DBFcn
.Open "Provider=MSDASQL.1;Persist Security Info=False;Data Source=dBASE Files;Initial Catalog=" & {Directory Name ("C:\DATA\")}
End With
'dbase Recordset
With DBFrs
.ActiveConnection = DBFcn
.CursorLocation = adUseClient
.CursorType = adOpenDynamic
.Open "Select * FROM [" & {FILENAME ("DATAFILE.DBF")} & "]"
.MoveFirst
Do While Not .EOF
.MoveNext
Loop
.Close
End With
Quote:
> Hello,
> I can't find any information about dBase III-connections with ADO.
> I know the use of ODBC-connections, but I can't use them for this
> project. Does anyone know a way to connect to a .dbf-file ?
> Thank you!
> --
> Peter Elsen