I have been told what I am wanting is easy to do, but I just can't figure it out. What I'd like to do is change my current database listing so that the heading column is a drop down filter, like the excel autofilter function.
Below is my current coding. I would like to replace the headings shown in lines 10-12 (position, team, ratings) with dropdown boxes populated with the results from the database.
<%
Dim rsItems
strSQL = "SELECT * FROM Item "
Set rsItems = Server.CreateObject("ADODB.Recordset"
rsItems.Open strSQL, objConn
If Not rsItems.EOF Then
Response.Write _
"<TABLE BORDER=""1"" CELLSPACING=""2"" CELLPADDING=""2"">" & _
" <TR>" & _
" <TH>Name</TH>" & _
" <TH>Position</TH>" & _
" <TH>Team</TH>" & _
" <TH>Ratings</TH>" & _
" </TR>
Response.Write _
"<TD><FONT SIZE=""-1"">" & rsItems("ItemName"
& "</TD>" & _
"<TD><FONT SIZE=""-1"">" & rsItems("Position"
& "</TD>" & _
"<TD><FONT SIZE=""-1"">" & rsItems("Team"
& "</TD>" & _
"<TD><FONT SIZE=""-1"">" & rsItems("plyrRatings"
& "</TD>"
rsItems.MoveNext
Loop
Response.Write "</TABLE>"
rsItems.close
%>
If someone could show me a link to a good site that will show me in detail how to do this, or if it's real easy show me here, I would greatly appreciate it.
Below is my current coding. I would like to replace the headings shown in lines 10-12 (position, team, ratings) with dropdown boxes populated with the results from the database.
<%
Dim rsItems
strSQL = "SELECT * FROM Item "
Set rsItems = Server.CreateObject("ADODB.Recordset"
rsItems.Open strSQL, objConn
If Not rsItems.EOF Then
Response.Write _
"<TABLE BORDER=""1"" CELLSPACING=""2"" CELLPADDING=""2"">" & _
" <TR>" & _
" <TH>Name</TH>" & _
" <TH>Position</TH>" & _
" <TH>Team</TH>" & _
" <TH>Ratings</TH>" & _
" </TR>
Response.Write _
"<TD><FONT SIZE=""-1"">" & rsItems("ItemName"
"<TD><FONT SIZE=""-1"">" & rsItems("Position"
"<TD><FONT SIZE=""-1"">" & rsItems("Team"
"<TD><FONT SIZE=""-1"">" & rsItems("plyrRatings"
rsItems.MoveNext
Loop
Response.Write "</TABLE>"
rsItems.close
%>
If someone could show me a link to a good site that will show me in detail how to do this, or if it's real easy show me here, I would greatly appreciate it.