I have a DOB text box ("txtDOB"
on my form. I want to be able to loop through a recordset so that where "txtDOB" = rsinfo("DOB_FIELD"
, the user will see a messagebox and then response.end.
Here's my code sofar:
if (request.form("chkTwin"
= ""
then
rsbabyinfo.MoveFirst
do while not rsbabyinfo.EOF
if request.form("txtDOB"
=rsbabyinfo("BABY_DOB"
then
%>
<script language="vbscript">
msgbox "You must check 'TWIN' if you want to enter a baby with the same DOB as another"
</script>
<%
response.end
end if
rsbabyinfo.movenext
Loop
end if
Here's my code sofar:
if (request.form("chkTwin"
rsbabyinfo.MoveFirst
do while not rsbabyinfo.EOF
if request.form("txtDOB"
%>
<script language="vbscript">
msgbox "You must check 'TWIN' if you want to enter a baby with the same DOB as another"
</script>
<%
response.end
end if
rsbabyinfo.movenext
Loop
end if