Added: June/21/2004 at 10:28am | IP Logged
|
|
|
REALLY! Well, my bad then!! Here it is.............
<table border=0 cellpadding=5 cellspacing=0 width="100%" height="0"> <tr> <td colspan=2 valign="top"> <form name="peer_recog_nomination" method="post"> <table width="100%" border="0" cellspacing="0" cellpadding="5"> <tr align="left"> <td height="30" valign="top"><strong>Elected Peers:</strong></td> <td valign="top"><strong># Votes</strong> </td> </tr> <% DIM Conn,strConn,SQLstmt,RS Set Conn = Server.CreateObject("ADODB.Connection") Set RS = Server.CreateObject("ADODB.RecordSet") strConn = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("gptw.mdb") Conn.Open strConn SQLstmt = "SELECT nominee from tbl_peervotes order by nominee;" RS.Open SQLstmt, Conn, 2, 3 DIM nom_count, nom_name nom_name = "" nom_count = 0 If Not RS.EOF then Do While NOT RS.EOF ' Records are ordered by name of electees. nom_count stores number of nominations per person. ' When a new nominee is encounterd, nom_count is reset to 1. if nom_name <> RS("nominee") then nom_count = 1 else nom_count = nom_count + 1 end if %> <tr align="left" valign="top"> <td width="42%" valign="top"> <%=RS("nominee")%> </td> <% nom_name = RS("nominee")%> <td width="58%" valign="top"><%=response.write(nom_count)%></td& gt; </tr> <% RS.MoveNext Loop Else Response.write "<tr align='left' valign='top'><td width='53%' valign='top'><span class='redbolditalic'>No Votes In Yet</span></td></tr>" End If %> & nbsp; </table>
----------------------------------
Thanks for any help,
Chris
__________________ ~`^%
In Vino Veritas
|