<%@LANGUAGE="VBSCRIPT"%> <% Dim rsTrades Dim rsTrades_numRows Set rsTrades = Server.CreateObject("ADODB.Recordset") rsTrades.ActiveConnection = MM_DB001_STRING If request.querystring("SID") = "" Or request.querystring("SID") = "BandAsc" Then rsTrades.Source = "SELECT * FROM Trades ORDER BY Trades.Band ASC" End If If request.querystring("SID") = "BandDesc" Then rsTrades.Source = "SELECT * FROM Trades ORDER BY Trades.Band Desc" End If If request.querystring("SID") = "DateAsc" Then rsTrades.Source = "SELECT * FROM Trades ORDER BY Trades.ShowDate Asc" End If If request.querystring("SID") = "DateDesc" Then rsTrades.Source = "SELECT * FROM Trades ORDER BY Trades.ShowDate Desc" End If If request.querystring("SID") = "VenueAsc" Then rsTrades.Source = "SELECT * FROM Trades ORDER BY Trades.Venue Asc" End If If request.querystring("SID") = "VenueDesc" Then rsTrades.Source = "SELECT * FROM Trades ORDER BY Trades.Venue Desc" End If If request.querystring("SID") = "CityAsc" Then rsTrades.Source = "SELECT * FROM Trades ORDER BY Trades.City Asc" End If If request.querystring("SID") = "CityDesc" Then rsTrades.Source = "SELECT * FROM Trades ORDER BY Trades.City Desc" End If If request.querystring("SID") = "FormatAsc" Then rsTrades.Source = "SELECT * FROM Trades ORDER BY Trades.Format Asc" End If If request.querystring("SID") = "FormatDesc" Then rsTrades.Source = "SELECT * FROM Trades ORDER BY Trades.Format Desc" End If If request.querystring("SID") = "NotesAsc" Then rsTrades.Source = "SELECT * FROM Trades ORDER BY Trades.Notes Asc" End If If request.querystring("SID") = "NotesDesc" Then rsTrades.Source = "SELECT * FROM Trades ORDER BY Trades.Notes Desc" End If rsTrades.CursorType = 0 rsTrades.CursorLocation = 2 rsTrades.LockType = 1 rsTrades.Open() rsTrades_numRows = 0 %> <% Dim Repeat1__numRows Dim Repeat1__index Repeat1__numRows = -1 Repeat1__index = 0 rsTrades_numRows = rsTrades_numRows + Repeat1__numRows %> Tiferet New Media

By the Grace of G-d

<% rsTrades.Close() Set rsTrades = Nothing %>