Hello,
I'm trying to simply display Yes/No instead of True/Fasle from an Access db yes/no field in a table cell - having trouble with the ASP formatting with the following statement :
<td width="122" valign="top" class="gen2">
<%= If (rs_av.Fields.Item("w1_Avail"
.Value = True)
' set the yes/no true/false access field to more friendly yes/no
Response.Write "Yes"
Elseif (rs_av.Fields.Item("w1_Avail"
.Value = False) Then
Response.Write "No"
End If
%></td>
this is throwing up the error :
Error Type:
Microsoft VBScript compilation (0x800A0400)
Expected statement
/bigbluetravel/vd.asp, line 299
= If (rs_av.Fields.Item("w1_Avail"
.Value = True)
I've tried various changes ,but am getting same error..
Thanks in advance for any tips...
I'm trying to simply display Yes/No instead of True/Fasle from an Access db yes/no field in a table cell - having trouble with the ASP formatting with the following statement :
<td width="122" valign="top" class="gen2">
<%= If (rs_av.Fields.Item("w1_Avail"
' set the yes/no true/false access field to more friendly yes/no
Response.Write "Yes"
Elseif (rs_av.Fields.Item("w1_Avail"
Response.Write "No"
End If
%></td>
this is throwing up the error :
Error Type:
Microsoft VBScript compilation (0x800A0400)
Expected statement
/bigbluetravel/vd.asp, line 299
= If (rs_av.Fields.Item("w1_Avail"
I've tried various changes ,but am getting same error..
Thanks in advance for any tips...