Ver Mensaje Individual
  #2 (permalink)  
Antiguo 16/11/2002, 18:25
Avatar de g_susdaniel
g_susdaniel
 
Fecha de Ingreso: mayo-2001
Ubicación: Frente al Monitor :þ
Mensajes: 995
Antigüedad: 24 años
Puntos: 0
<%
objConn = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("tubd.mdb ")

strSQL = "SELECT * FROM tutabla "

Set objRS = Server.CreateObject("ADODB.Recordset")

objRS.Open strSQL, ObjConn, 1, 2

rndMax = CInt(objRS.RecordCount)

Randomize Timer

rndNumber = Int(RND * rndMax)

objRS.Move rndNumber

Response.Write objRS("ID ")&"&nbsp;"&objRS("Username ")
Set objRS = Nothing
Set objConn = Nothing
%>


Creo que aki tienes lo quieres solo cabia lo que está en italicas negritas o subrayado a tu estilo ó necesidad...

Suerte
__________________
No, no no... no hay firma...