ODBC FALLO LA LLAMADA
Publicado por Anahis (6 intervenciones) el 05/02/2004 21:09:30
Hola a todos soy principiante en SQL y VB 6.0, tengo el siguiente problema cree una base de datos con una tabla en SQL Server 7.0, y en VB 6.0 desarrolle una pequeña rutina para q me buscara los datos de un text.text en la tabla q cree, hace la conexion con la base de datos bien el problema viene cuando va ha buscar el texto en la tabla creada
SQL = "select prueba,prueba_a from datos where prueba= '" & Text4.Text & "'"
Debug.Print SQL
' AQUI DA EL ERROR 3146 ODBC: FALLO LA LLAMADA Set Rs = Db.OpenRecordset(SQL, dbOpenSnapshot, dbSQLPassThrough)
If Rs.EOF = False Then
Rs.MoveLast
Rs.MoveFirst
If Rs.RecordCount > 0 Then ShowRecord
Else
MsgBox "No se han encontrado registros"
End If
MIL GRACIAS
SQL = "select prueba,prueba_a from datos where prueba= '" & Text4.Text & "'"
Debug.Print SQL
' AQUI DA EL ERROR 3146 ODBC: FALLO LA LLAMADA Set Rs = Db.OpenRecordset(SQL, dbOpenSnapshot, dbSQLPassThrough)
If Rs.EOF = False Then
Rs.MoveLast
Rs.MoveFirst
If Rs.RecordCount > 0 Then ShowRecord
Else
MsgBox "No se han encontrado registros"
End If
MIL GRACIAS
Valora esta pregunta


0