Ver Mensaje Individual
  #3 (permalink)  
Antiguo 14/10/2003, 12:51
Avatar de jorel
jorel
 
Fecha de Ingreso: abril-2003
Ubicación: Monterrey, N.L.
Mensajes: 253
Antigüedad: 22 años, 1 mes
Puntos: 0
Es como dice: Bluesman74cl

' si recoges el id o titulo de un form
id = Request.Form("id")
titulo = Request.Form("titulo")


' o si lo recoges de un url
id = request("variable")
titulo = request("titulo")

strSQL = "DELETE * FROM tu_tabla WHERE id="&id&" and titulo=' "&titulo&" ' "

Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ="&Server.MapPath("tubd.mdb")
Set RS = Server.CreateObject("ADODB.Recordset")
RS.Open strSQL, oConn, 3,3

Set Rs=oConn.Execute(strSQL)
__________________

:adios:

Jorge Santana

Última edición por jorel; 14/10/2003 a las 12:57