<% dim x_vst_id, x_id_02 x_vst_id=Request.Form("x_vst_id") x_id_02=Request.Form("x_id_02") dim xx_guncelle_kayit xx_guncelle_kayit=Request.Form("xx_guncelle_kayit") IF xx_guncelle_kayit="VISIT_GUNCELLE" THEN dim x_vst_21 x_vst_21=Request.Form("x_vst_21") Set Bag0 = Server.CreateObject("ADODB.Connection") Bag0.Open("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("\RDX2945738264\db\RDX2945738264.mdb")) SQL ="UPDATE tbl_visits SET x_vst_21='"&x_vst_21&"' WHERE x_vst_id="&x_vst_id&"" on error resume next Bag0.Execute sql,recaffected if err<>0 then Response.Write("

DELETE is FAILED ! ! ! ! ! ! ! ! ! ! ! ! !

") else Response.Write("

DELETE is DONE.

") end if Bag0.close END IF %> <% Set Bag = Server.CreateObject("ADODB.Connection") Bag.Open("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("\RDX2945738264\db\RDX2945738264.mdb")) SQL = "SELECT * FROM tbl_visits WHERE x_vst_id="&x_vst_id&" AND x_vst_21='ACTIVE'" set ky = Bag.Execute(SQL) %>
  VISITING REPORT
Subject <%=ky("x_vst_05")%>  Purpose :<%=ky("x_vst_07")%>  
Date <%=ky("x_vst_08")%> / <%=ky("x_vst_09")%>  Activity :<%=ky("x_vst_22")%> First Contact :<%=ky("x_vst_06")%>  Activity is :<%=ky("x_vst_10")%>  
Met With  -  Mr / Mrs <%=ky("x_vst_11")%>    Title :<%=ky("x_vst_20")%>     Mail :<%=ky("x_vst_12")%>     Mobile :<%=ky("x_vst_13")%>  
Talking for <%=ky("x_vst_14")%>  
Interested Items <%=ky("x_vst_15")%>  
  <%=ky("x_vst_16")%>  Informed about ISO16949 certificated of HD Company  
  <%=ky("x_vst_17")%>  Informed about HD items; AIR SPRINGS, SLACK ADJUSTER, ENGIN MOUNTINGS, BUSHINGS...  
  <%=ky("x_vst_18")%>  Informed about AYFAR and MARSTECH LITHINGS  
  <%=ky("x_vst_19")%>  Informed about FOMAR BRAKE PADS  
 
DO YOU REALLY WANT TO DELETE THE RECORD ??? <% IF x_vst_21<>"DELETED" THEN Response.Write("") END IF%>

<% Set Bag3 = Server.CreateObject("ADODB.Connection") Bag3.Open("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("\RDX2945738264\db\RDX2945738264.mdb")) SQL = "SELECT * FROM tbl_visits WHERE x_vst_id="&x_vst_id&"" set ky3 = Bag3.Execute(SQL) %>
<% ky3.close set ky3 = Nothing Bag3.close set bag3 = Nothing %>