VB If statement for repeating region
Basically Im trying to show different code if the value in the DB in column Format is "View" or "Download" in bold is what I did my I'm thinking the code is wrong. I made one recordset named Umm. Any help is appreciated.
<table class="sortable" id="sortabletable" width="900" border="0" cellpadding="0" cellspacing="0">
<tr>
<th width="260">Division</th>
<th width="226">Title</th>
<th width="108">Format</th>
<th width="148">Language</th>
</tr>
<% While ((Repeat2__numRows <> 0) AND (NOT Umm.EOF)) %>
<tr>
<td><%=(Umm.Fields.Item("Division").Value)%></td>
<td><%=(Umm.Fields.Item("Title").Value)%></td>
<% if (Request.QueryString("Format")) = "Download" then %>
<td><a href="<%=(Umm.Fields.Item("URL").Value)%>"><%=(Umm.Fields.Item("Format").Value)%></a></td>
<%elseif (Request.QueryString("Format")) = "View" then%>
<td><a href="javascript:;" onclick="MM_openBrWindow('<%=(Umm.Fields.Item("URL").Value)%>','','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=800,height=600')"><%=(Umm.Fields.Item("Format").Value)%></a></td>
<% end if %>
<td><%=(Umm.Fields.Item("Language").Value)%></td>
</tr>
<%
Repeat2__index=Repeat2__index+1
Repeat2__numRows=Repeat2__numRows-1
Umm.MoveNext()
Wend
%>
</table>
