D
Drew
I have a form which has 1 textbox in it. When the user enters a number, and
tabs, it submits the form and the textbox disappears and the name of the
person that the ID corresponds to is displayed (filters recordset, returns
name). The problem I have is that this is the first textbox on the page,
and when the user tabs, the tab order gets funky and the user has to click
on the next textbox. This is unacceptable to my data entry people, as they
are used to tabbing everywhere. Does anyone have any ideas?
Here is my code for the 2 forms (the RS is created earlier),
<form action="addEvent.asp" method="post" name="Name1" id="Name1">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="16%">Reg. # </td>
<td width="2%"> </td>
<td width="82%">
<%If Request.Form("RegNo1") = "" Then%>
<input name="RegNo1" type="text" id="RegNo1"
onChange="document.Name1.submit();document.event1.event1.focus();;">
<%Else
If rsCliName.EOF AND rsCliName.BOF Then
Response.Write("No Resident")
Else
Response.Write(rsCliName("CliFName") & " " &
rsCliName("CliLName"))
End If
End If%>
</td>
</tr>
</table>
</form>
<form action="" method="post" name="event1" id="event1">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="16%">Event</td>
<td width="2%"> </td>
<td width="82%"><input name="event1" type="text" id="event1"></td>
</tr>
</table>
</form>
Thanks,
Drew Laing
tabs, it submits the form and the textbox disappears and the name of the
person that the ID corresponds to is displayed (filters recordset, returns
name). The problem I have is that this is the first textbox on the page,
and when the user tabs, the tab order gets funky and the user has to click
on the next textbox. This is unacceptable to my data entry people, as they
are used to tabbing everywhere. Does anyone have any ideas?
Here is my code for the 2 forms (the RS is created earlier),
<form action="addEvent.asp" method="post" name="Name1" id="Name1">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="16%">Reg. # </td>
<td width="2%"> </td>
<td width="82%">
<%If Request.Form("RegNo1") = "" Then%>
<input name="RegNo1" type="text" id="RegNo1"
onChange="document.Name1.submit();document.event1.event1.focus();;">
<%Else
If rsCliName.EOF AND rsCliName.BOF Then
Response.Write("No Resident")
Else
Response.Write(rsCliName("CliFName") & " " &
rsCliName("CliLName"))
End If
End If%>
</td>
</tr>
</table>
</form>
<form action="" method="post" name="event1" id="event1">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="16%">Event</td>
<td width="2%"> </td>
<td width="82%"><input name="event1" type="text" id="event1"></td>
</tr>
</table>
</form>
Thanks,
Drew Laing