EL VALOR DEL BOF O EOF ES TRUE,....
Publicado por angelluis (1 intervención) el 22/06/2007 16:40:47
TENGO EL SIGUIENTE PROBLEMA, ESTOY HACIENDO UN PROGRAMITA PARA PRECIOS DE ACUERDO PESO. ESTOY USANDO MSDE PARA LA BD Y VB6 (SO WINDOWS XP). YA CONECTE LA BD PERO CUANDO LO EJECUTO ME DA EL SIGUIENTE ERROR: "El valor del BOF o EOF es TRUE, o el actual registro se eliminó; la operacion solicitada requiere un registro actual". ESTE ES LA PARTE DEL CODIGO DONDE DEBERIA SACAR LA TARIFA.
SI QUIEREN LES PUEDO ENVIAR TODO EL CODIGO PARA QUE ME AYUDEN. DESDE YA GRACIAS.
Private Sub COTIZA()
If ok = False Then
Else
If COT.State = adStateOpen Then
COT.Close
Else
pn = True
COT.Open "select top 1 * from tarifas where COD_SERV =" & CSERVICIO & " and_
cod_tenv=" & Text(8) & " and cod_catg=" & WW & " and cod_region = " & Text(9) & " and_ peso_max >= " & Text(2) & " order by tarifa", DB, adOpenKeyset, adLockOptimistic
MONTO = COT!tarifa
Text(3) = MONTO
COT.Close
End If
End If
End Sub
SI QUIEREN LES PUEDO ENVIAR TODO EL CODIGO PARA QUE ME AYUDEN. DESDE YA GRACIAS.
Private Sub COTIZA()
If ok = False Then
Else
If COT.State = adStateOpen Then
COT.Close
Else
pn = True
COT.Open "select top 1 * from tarifas where COD_SERV =" & CSERVICIO & " and_
cod_tenv=" & Text(8) & " and cod_catg=" & WW & " and cod_region = " & Text(9) & " and_ peso_max >= " & Text(2) & " order by tarifa", DB, adOpenKeyset, adLockOptimistic
MONTO = COT!tarifa
Text(3) = MONTO
COT.Close
End If
End If
End Sub
Valora esta pregunta


0