Ver Mensaje Individual
  #10 (permalink)  
Antiguo 25/06/2002, 16:23
Avatar de bakanzipp
bakanzipp
 
Fecha de Ingreso: noviembre-2001
Ubicación: santiago de shilli
Mensajes: 2.554
Antigüedad: 23 años, 5 meses
Puntos: 0
Re: Borrar registros

¿¿¿????...huuaa...ke raro...estas segura que probaste asi?

Código:
  
Set rs = Server.CreateObject ("ADODB.Recordset")
strSQL = "SELECT * FROM empleados WHERE Nombre ='" & nombre & "' and Apellido ='" & apellido & "'" 

response.write strSQL

Set rs=oConn.execute(strSQL)

if not(rs.eof) and not(rs.bof) then
strSQL = "DELETE FROM empleados WHERE Nombre='"&nombre&"' and Apellido='"& apellido &"'"
rsdel=Set oConn.execute(strSQL)
Response.Write ("<p> Nombre borrado: " & Nombre & " " & Apellido & " " & "<br>")
rsdel.Close
else
 response.write "No existe el Registro"
end if