Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/03/2002, 07:36
dimoito
 
Fecha de Ingreso: enero-2002
Mensajes: 120
Antigüedad: 23 años, 2 meses
Puntos: 0
Re: actualizar un registro

El update lo tienes que hacer de la misma manera que haces el Select :
Set rs = Server.CreateObject ("ADODB.Command")
rs.ActiveConnection = Conexion

if Request.QueryString("valor")="1&quo t; then

rs.CommandText = "Select * from Consultas1 Where Expediente= "& Request.QueryString("id")
set Datos = rs.execute()
if Datos("Apellidos") <> Request.form("Apellidos") then
%>pepe<%
rs.CommandText = " Update Consultas1 set Apellidos=Request.form("Apellidos") Where Expediente= "& Request.QueryString("id")
set Datos = rs.execute()
end if
end if