I have error in update code. It work but i not found data in Microsoft Access.
This is the code.
Please help me.
This is the code.
Code:
<html>
<body><br><br><br><br><br><br><br><br>
<h1><center>Appointment Update
<hr>
<%
dim AppointmentID
dim ChildID
dim VisitID
dim StaffID
dim DateOfAppointment
dim Time
dim Remarks
AppointmentID=request.form("AppointmentID")
Response.write(AppointmentID)
ChildID=request.form("ChildID")
VisitID=request.form("VisitID")
StaffID=request.form("StaffID")
DateOfAppointment=request.form("DateOfAppointment")
Time=request.form("Time")
Remarks=request.form("Remarks")
sql="update Appointment set ChildID='"&ChildID&"',VisitID='"&VisitID&"',StaffID='"&StaffID&"',DateOfAppointment='"&DateOfAppointment&"',Time='"&Time&"',Remarks='"&Remarks&"' where AppointmentID='"&AppointmentID&"'"
//response.write sql
set Conn=Server.CreateObject("ADODB.Connection")
Conn.open "C"
set rs=Server.CreateObject("ADODB.recordset")
response.write("update data")
%>
ID of child is Updated
<form method ="POST"action="medicals.asp">
<input type=Submit value="Back">
</form>
</body>
</html>
Comment