% strLetter = request("Letter") ' Create a recordset object to store specific table information Set objRS = Server.CreateObject("ADODB.Recordset") 'Establish what records you want selected for the SQL query string SQL = "Select * From TblLogin where AgencyName like '" + strLetter + "%' and (AccessLevel = '3' or AccessLevel = '7') order by AgencyName" 'Set the recordset object equal to the SQL query string objRS.Open SQL, objADO, 1, 3 ' Create a recordset object to store specific table information Set objRS2 = Server.CreateObject("ADODB.Recordset") 'Establish what records you want selected for the SQL query string SQL = "Select * From TblAlphabet" 'Set the recordset object equal to the SQL query string objRS2.Open SQL, objADO, 1, 3 %>
BAND SEARCH
Bands By Alphabetical Listing: <%= strLetter %>
| "><%= objRS2("Alphabet") %> | <% objRs2.MoveNext %> <% wend %>
<% if not objrs.EOF then %>
| Name | Genre | City | State | View Shows / Band Detail | |
|
<% if objRS("Picture1") <> "" then %>
"> |
"><%= objRs("AgencyName")%> | <%= objRs("Genre") %> | <%= objRs("City") %> | <%= objRs("State") %> | ">[ View Shows ]  ">[ View Band Detail ] |
|
|
|||||
Currently we do not have bands that begin with the letter <%= strLetter %>. New bands are always being added. Please check back again soon. <% end if %>