NECESITO SABER SI ES POSIBLE

LLANES
22 de Diciembre del 2003
HOLA NECESITO SABER SI ES POSIBLE HACER QUE MEDIANTE UN BOTON QUE ESTÁ REALIZANDO LA FUNCIÓN DE MOSTRAR EL REGISTRO SIGUIENTE DE UNA BASE DE DATOS CONECTADA CON UN CONTROL DATA DECLARARLE MEDIATE CÓDIGO EN EL PROCEDIMIENTO DEL BOTON SIGUIENTE QUE CUANDO LLEGUE AL FINAL DE LA TABLA MUESTRE UN MENSAGE QUE DIGA QUE SE ACABARON LOS RECORDS.


SALUDOS
LLANES

Anonimo
22 de Diciembre del 2003
Nada más tienes que preguntar si el registro actual es el último registro:
If adodc1.Recordset.AbsolutePosition=adodc1.Recordset.RecordCount then
msgbox "Es el último registro"
end if

ed
22 de Diciembre del 2003
este es un ejemplo del boton siguiente con una tabla llamada clientes y una funcion llamada mostrar_clientes

dentro del boton:

clientes.movenext
if clientes.eof then
msgbox "Este es el ultimo registro, se acavaron los records"


clientes.movelast

else

call mostrar_clientes

end if
end sub