StrConnDB = "DSN=maquinas_testes" Set oConn = server.createobject("ADODB.Connection") oConn.ConnectionString = StrConnDB oConn.Open()It connects ok. Then I try to perform a select in one of those tables (Maquinas_PedMaqCab), as shown below:
Set rsMaq=server.createobject("ADODB.Recordset") rsMaq.ActiveConnection= oConn StrSql="Select * from Maquinas_PedMaqCab WHERE PH_numped=900243" oConn.execute(StrSql)When the Select is executed I get the following error:
Microsoft OLE DB Provider for ODBC Drivers error '80040e37' [Microsoft][ODBC Visual FoxPro Driver]File 'maquinas_pedmaqcab.dbf' does not exist. /maquinas/relatorio.asp, line 15Line 15 is the line containing the "oConn.execute(StrSql)"