1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <%
DSN_BASE = "DBQ=" & Request.ServerVariables("APPL_PHYSICAL_PATH") & "db1.mdb" & ";Driver={Microsoft Access Driver (*.mdb)};Driverld=25"
Set Conn = Server.CreateObject("ADODB.Connection") Conn.Open DSN_BASE Set RS = Server.CreateObject("ADODB.Recordset")
Select case request.form("Envoie")
case "Modifier"
Sql="Update SuiviSAV set champ1='"& request.form("val1") &"' where id="& request.Form("SuiviSAV") &""
Rs.open Sql, conn
case "Enregistrer"
Sql="Insert into SuiviSAV (ID,N0emplacement,nomduclient,emplacementduMH,datedepriseenchargeduclient,datedepriseenchargedumateriel,avancementdutravail,,matrielrpr,retouratelier,remarques,dtaildelapanne) Values ('"& Request.form("ID") &"','"& Request.form("N0emplacement") &"','"& Request.form("nomduclient") &"','"& Request.form("emplacementduMH") &"','"& Request.form("datedepriseenchargeduclient") &"','"& Request.form("datedepriseenchargedumateriel") &"','"& Request.form("avancementdutravail") &"','"& Request.form("matrielrpar") &"','"& Request.form("retouratelier") &"','"& Request.form("remarques") &"','"& Request.form("dtaildelapanne") &"'"
Rs.open Sql, conn
case else
Response.write "aucune tache choisie"
end select
Set RS = Nothing
Conn.Close
Set Conn = Nothing
%> |
Partager