<!-- connect data base to hrisdsn for search data emploey --->
<%
dim conn
dim sql
dim rs
set conn=server.CreateObject("ADODB.Connection")
conn.Open "driver={microsoft access driver (*.mdb)};DBQ= "&Server.MapPath("dbforeigner.mdb")
sql="select * from tbforeigner a,tbchild b where (a.fempno='"&trim(request.QueryString("fempno"))&"') and (b.fempno='"&trim(request.QueryString("fempno"))&"')"
code update
<%
Dim Conn1
Dim sql
Dim Rs
Dim child
child=Request.Form("fempno").count
for i=1 to child
Set Conn1 = Server.Createobject("ADODB.Connection")
Conn1.Open "driver={microsoft access driver (*.mdb)};DBQ= "&Server.MapPath("dbforeigner.mdb")
sql="select * from tbchild where (fempno='"&trim(request("fempno").item(i))&"')"
Set Rs= Server.CreateObject("ADODB.recordset")
RS.open sql,Conn1,1,3
Rs("fempno")=Request("fempno").item(i)
Rs("name_child")=Request("txtnamechi").item(i)
Rs("pass_no")=Request.Form("txtpasschi").item(i)
Rs("date_issue")=Request.Form("txtdischi").item(i)
Rs("date_exp")=Request.Form("txtexchi").item(i)
Rs("date_birth")=Request.Form("txtbirchi").item(i)
Rs("national")=Request.Form("txtnachi").item(i)
Rs("date_workin")=Request.Form("date_walkchi").item(i)
Rs("tmchild")=Request.Form("txttmchi").item(i)
Rs("due_date")=Request.Form("")
Rs("date_alert")=Request.Form("")
Rs.Update
Rs.Close
Conn1.Close
set Rs=nothing
Next
response.write("<center><b>Update Data Completed!!")