Ver Mensaje Individual
  #10 (permalink)  
Antiguo 30/11/2002, 08:25
Javier1287
 
Fecha de Ingreso: febrero-2002
Ubicación: Ciudad Real
Mensajes: 32
Antigüedad: 23 años, 3 meses
Puntos: 0
El codigo de la pagina ha quedado asi:

<%
Dim oConn
Dim oRS
Dim sSQL
Dim sColor


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

<%
Dim pp
pp = Request.QueryString("ID")
Dim qp
qp = cint(Request.QueryString("Reg"))%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Pagina nueva 1</title>
<LINK REL="stylesheet" MEDIA="screen" HREF="pantalla.css"
TYPE="text/css">
</head>
<body class="normal">
<%
sSQL = "SELECT * FROM " & pp & " where IDent = " & qp & " "
Set oRS = oConn.Execute(sSQL)
%>
<h1><%=oRS("Titulo")%></h1>
<p align="center"><i><%=oRS("Resumen")%></i></p>

<p align="Justified"><%=oRS("Texto")%></p>
</body>
</html>
<%
oConn.Close
Set oRS = Nothing
Set oConn = Nothing

%>


Pero ahora me de este otro error:

ADODB.Field error '80020009'

Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.

/raiderspy/contenido.asp, line 0


Teniendo en cuenta que la base de datos no está vacia... Que ocurre?

Y ya de paso... ¿Que es un BOF?