Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

More help on tables please

Status
Not open for further replies.

zzfive03

Programmer
Jun 11, 2001
267
Lets say I have a table displaying a list of database items. Would it be possible for me to have an up/down button that would move the selected table. (kind of like putting the items in a priority)?
 
you might be able to use a "LIST" box an have the user click an item.
Then re-shuffle the items in the list box so its first.

this is a rough idea
<p><select size=&quot;5&quot; name=&quot;List1&quot; tabindex=&quot;est5&quot;>
<option>test1</option>
<option>test2</option>
<option selected>test3</option>
<option>test4</option>
<option>test5</option>
<option>test6</option>
<option>test7</option>
</select>

A list box is actually a Drop down with a larger size (5 in our case)
the “size” parameter is how many rows show in the list
In this example Option 3 is the default selection if needed.

To find out which item is picked.
<%
Sub List1_onchange
Set theForm = document.FrontPage_Form1

If (theForm.List1.selectedindex = 1) then
‘ first item in list selected
ElseIf (theForm. List1.selectedindex = 3) then
‘ third item in list selected
Else

End if
End sub
%>

DougP, MCP

Visit my WEB site to see how Bar-codes can help you be more productive
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top