I have a page linked to a database query where users lookup the group number they want. Most of the group numbers begin with "00". When a user types in "00" it's fine but when they type in a "7" as the next number in the group number, like "00779", it takes them to the first number beginning with "7", like "7000", instead of the "007" numbers.
Given this, to choose a group number from the database dropdown list the user has to scroll down till they find the exact group number instead of being able to enter the first few numbers for it and be taken close if not to it.
How can I modify my code so when a user enters something like "007" it takes them to that beginning number in the list?
Here's my group number code:
Any help would be greatly appreciated
Given this, to choose a group number from the database dropdown list the user has to scroll down till they find the exact group number instead of being able to enter the first few numbers for it and be taken close if not to it.
How can I modify my code so when a user enters something like "007" it takes them to that beginning number in the list?
Here's my group number code:
Code:
<td align=center><font face="Bookman Old Style" color="#FFFFFF"><strong>GROUP NO:</strong></font></a></td>
<td><P align=center><SELECT NAME="GROUP" SIZE="1">
<Option selected value="none">CHOOSE A GROUP...</option>
<%
Set rs = connection.Execute("SELECT * From [GROUP_LOOKUP]")
rs.MoveFirst
Do While NOT rs.EOF
Response.Write "<OPTION VALUE='" & rs("GROUP") & "'>"
Response.Write rs("GROUP") & "</OPTION>"
rs.MoveNext
Loop
rs.close
Set rs=nothing
%>
Any help would be greatly appreciated