Visual Basic - SQL

Life is soft - evento anual de software empresarial
 
Vista:

SQL

Publicado por pablo (1 intervención) el 11/12/2003 19:23:44
tengo la tabla peliculas y el campo codpelicula, necesito las instruccion para extraer la informacion del ultimo registro de codpelicula
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:SQL

Publicado por kinoscar (233 intervenciones) el 11/12/2003 19:45:50
ADODC1.RECORDSET.MOVELAST

ESO TE LLEVA AL ULTIMO REGISTRO Y ASI LO ACCESAS

MSGBOX ADODC1.RECORDSET.FIELDS("CODPELICULA").VALUE

SUERTE
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:SQL

Publicado por Fabian (501 intervenciones) el 11/12/2003 19:48:33
haber si no te entendi mal, para extraer la informacion del ultimo registro:
Si usas el Objeto Recordset:
if Not Rs.EOF then
Rs.MoveLast
End If
Si usas ADODC:
If not ADODC1.Recordset.Eof then
ADODC1.Recordset.MoveLast
end if
Con eso te ubicas en el ultimo registro y puedes obtener su informacion
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar