Ver Mensaje Individual
  #11 (permalink)  
Antiguo 26/08/2002, 09:24
Avatar de CHuLoSoY
CHuLoSoY
 
Fecha de Ingreso: febrero-2002
Ubicación: Ribeira (Galicia)
Mensajes: 1.900
Antigüedad: 23 años, 3 meses
Puntos: 29
Re: ¿Qué hay mal aquí?

Hola, hay un problema más, lo que quiero es que muestre el último registro de la bd y me muestra el primero. Tengo la siguiente sentencia:

Código:
<%
Set con = Server.CreateObject("ADODB.Connection")
Con.Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _
Server.MapPath("******.mdb"))
sql = "SELECT TOP 1 * FROM Noticias"
set result = Con.Execute(sql)
%>
<center><hr size="1" color="blue" width="39%"><a href="http://www.ommadawn.es.vg" target="_blank"><font color="red">www.Ommadawn.es.vg[/CODE]</a><hr size="1" color="blue" width="39%">