|
|
| |
| WHATS
ON |
 |
<%
Dim cn2
Dim rs2
dim Y
Y = 0
On error resume next
set cn2 = server.CreateObject("ADODB.Connection")
set rs2 = server.CreateObject("ADODB.Recordset")
cn2.Open "irie"
rs2.CursorLocation = 3
' rs2.Open "SELECT tblHerefordWhatsOnListings.Category, Count(tblHerefordWhatsOnListings.Category) AS CountOfCategory FROM tblHerefordWhatsOnListings GROUP BY tblHerefordWhatsOnListings.Category ORDER BY tblHerefordWhatsOnListings.Category" ,cn, 2 'adOpenDynamic ', adLockOptimistic
rs2.Open "SELECT tblHerefordWhatsOnListings.Category, tblHerefordWhatsOnListings.CategoryID, Count(tblHerefordWhatsOnListings.Category) AS CountOfCategory FROM tblHerefordWhatsOnListings GROUP BY tblHerefordWhatsOnListings.Category, tblHerefordWhatsOnListings.CategoryID ORDER BY tblHerefordWhatsOnListings.Category" ,cn, 2 'adOpenDynamic ', adLockOptimistic
rs2.MoveLast
rs2.MoveFirst
Do until rs2.eof
Response.write "| "
Response.write "" & rs2("Category") & " (" & rs2("CountOfCategory") & ")" & " | "%>
 |
<% rs2.MoveNext
Y = Y + 1
loop
cn2.close
set cn2 = nothing
%>
 |
| [Back
to top] |
|
|
|
|
 |
|
|