Ver Mensaje Individual
  #9 (permalink)  
Antiguo 19/06/2002, 17:24
jpalbox
 
Fecha de Ingreso: abril-2002
Mensajes: 432
Antigüedad: 23 años
Puntos: 0
Re: ¿Se puede hacer esto?

Mira lo q he hecho <html>

<head>
<title>Modificar datos entrada</title>
</head>

<body>
<%'Abre la conexion con la base de datos a traves de una conexion ODBC
Set con = Server.CreateObject("ADODB.Connection")
'Como vamos a utilizar la variable rs del tipo recordset para recorrer los registros con EOF
Set rs = Server.CreateObject("ADODB.Recordset")
con.Open("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("\jpalbox\db\usuarios.mdb&quot ;))

SQL="Select * from Personal where usuario=" & jpalbox & "'"
SET rs=con.execute(SQL)
If rs.EOF = True then
%>
<div align="center"><center>

<table width="339">
<tr>
<td>Nombre:<input type="text" name="nombre" VALUE="<%=Rs("nombre")%>&quot ; size="20"></td>
</tr>
</table>
</center></div><%
end if
con.Close
Set con = Nothing
%>

</body>
</html>
corrigeme. Gracias