Ver Mensaje Individual
  #4 (permalink)  
Antiguo 27/09/2005, 12:08
Avatar de JuanRAPerez
JuanRAPerez
Colaborador
 
Fecha de Ingreso: octubre-2003
Mensajes: 2.393
Antigüedad: 20 años, 7 meses
Puntos: 27
defini la base
y la tabla a utilizar

luego empezas a mostrar registros

------------------
<html>

<%
Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open("DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("TuNombredeBase.mdb"))
%>

<%
SQL = "SELECT * FROM TuNombredeTabla"
Set objRS = oConn.Execute(SQL)

if objRS.bof and objRS.eof then
Response.write "no hay registros que mostrar."
else
%>

<%
while (not objRS.Eof)
%>

<p><%=objRS("NombreDeCampodeLaBase")%></p>

<%
objRS.MoveNext
wend
%>
<%
end if
objRS.Close
set objRS = nothing
oConn.Close
set oConn = nothing
%>
__________________
JuanRa Pérez
San Salvador, El Salvador