I have a SQL statement that returns a recordset. I am trying to display this as a list but I don't want a record to be repeated if value for MeetingID is repeated.
So far I have:
Do While Not TBL.EOF
LastMeetingID=TBL("MeetingID")
Response.Write("<tr>")
Response.Write("<td><font face='verdana' size='2'>") & TBL("Title") & "</font></td>"
Response.Write("<td><font face='verdana' size='2'>") & TBL("O.FirstName") & " " & TBL("Surname") & "</font></td>"
Response.Write("<td><font face='verdana' size='2'>") & TBL("RoomID") & "</font></td>"
Response.Write("<td><font face='verdana' size='2'>") & TBL("Date") & "</font></td>"
Response.Write("<td><font face='verdana' size='2'>") & TBL("StartTime") & "</font></td>"
Response.Write("</tr>")
Do While TBL("MeetingID")=LastMeetingID And Not TBL.EOF
TBL.MoveNext
Loop
counter=counter+1
Loop
I am getting an exception though at the line
Do While TBL("MeetingID")=LastMeetingID And Not TBL.EOF
Is there a better way round it than the way I am attempting?
Thanks
Ed
So far I have:
Do While Not TBL.EOF
LastMeetingID=TBL("MeetingID")
Response.Write("<tr>")
Response.Write("<td><font face='verdana' size='2'>") & TBL("Title") & "</font></td>"
Response.Write("<td><font face='verdana' size='2'>") & TBL("O.FirstName") & " " & TBL("Surname") & "</font></td>"
Response.Write("<td><font face='verdana' size='2'>") & TBL("RoomID") & "</font></td>"
Response.Write("<td><font face='verdana' size='2'>") & TBL("Date") & "</font></td>"
Response.Write("<td><font face='verdana' size='2'>") & TBL("StartTime") & "</font></td>"
Response.Write("</tr>")
Do While TBL("MeetingID")=LastMeetingID And Not TBL.EOF
TBL.MoveNext
Loop
counter=counter+1
Loop
I am getting an exception though at the line
Do While TBL("MeetingID")=LastMeetingID And Not TBL.EOF
Is there a better way round it than the way I am attempting?
Thanks
Ed