ACCESS FOXPRO DATABASE WITH VB6
I get a error message:
[Microsoft][odbc.driver manger] data source not found and no default driver specified.
Set cn = New ADODB.Connection
cn.Open "Driver={Microsoft dBase Driver(*.dbf)};" _
& "DriverID=277;" _
& "dbg=D:\PerCap1;"
Dim rs As ADODB.Recordset
Set rs = New ADODB.Recordset
rs.ActiveConnection = cn
rs.Open "Select * from PerCap2"
I get a error message:
[Microsoft][odbc.driver manger] data source not found and no default driver specified.
Set cn = New ADODB.Connection
cn.Open "Driver={Microsoft dBase Driver(*.dbf)};" _
& "DriverID=277;" _
& "dbg=D:\PerCap1;"
Dim rs As ADODB.Recordset
Set rs = New ADODB.Recordset
rs.ActiveConnection = cn
rs.Open "Select * from PerCap2"