dongledell
Technical User
In my recordset is a field scheme("ratedesc"
This is displayed at the top of the page in an area using the following code:
<%
If scheme("ratetype"
= "Fixed" then
%>
<td><%=(scheme.Fields.Item("rate"
.Value)%>%<br> </td>
<%
Else
%>
<td><%=(scheme.Fields.Item("rate"
.Value)%>% over
<%=(scheme.Fields.Item("ratedesc"
.Value)%> (currently <%=(scheme.Fields.Item("currate"
.Value)%>% )<br> </td>
<%
End if
%>
Further down the page, it needs to be displayed again, but using slightly different criteria:
<%
If scheme("ratetype"
<> "Tracker" then
%>
<tr>
<td width="200" valign="top"><b>Reverting Rate</b></td>
<td><%=(scheme.Fields.Item("revetingrate"
.Value)%> over <%=(scheme.Fields.Item("ratedesc"
.Value)%><br>
</td>
</tr>
<%
End if
%>
Basically, if scheme("ratetype"
Is = "Fixed", then the first references to ....("ratedesc"
should be omitted, which it does, and the second should appear, which it does.
However if scheme("ratetype"
= "Discount", then the first should should show, which it does, but also the second reference should show as scheme("ratetype"
<> Tracker but it doesn't show?!
How come it works only when Scheme("ratetype"
= Fixed?
This is displayed at the top of the page in an area using the following code:
<%
If scheme("ratetype"
%>
<td><%=(scheme.Fields.Item("rate"
<%
Else
%>
<td><%=(scheme.Fields.Item("rate"
<%=(scheme.Fields.Item("ratedesc"
<%
End if
%>
Further down the page, it needs to be displayed again, but using slightly different criteria:
<%
If scheme("ratetype"
%>
<tr>
<td width="200" valign="top"><b>Reverting Rate</b></td>
<td><%=(scheme.Fields.Item("revetingrate"
</td>
</tr>
<%
End if
%>
Basically, if scheme("ratetype"
However if scheme("ratetype"
How come it works only when Scheme("ratetype"