I need help in getting my code right. I am very new at programming and am learning on the fly. I would like to display a checkmark image when the value of my data is true. I have an enum('TRUE','FALSE') data type in my DB. I want ASP to display the check when the value is true and nothing when the value is False. Here is a clip from my code:
...
'Add 4247 Information
str = str & "<TD><FONT FACE=VERDANA SIZE=2>"
str = str & If rs("Signed_4247"
="TRUE" Then "<img src=" & "../Images/checkmark3.jpg align=middle ALT=" & "4247 is Signed" & "></FONT>"
str = str & Else rs("Signed_4247"
="FALSE" Then "" & End If & "</TD>" [/b]
'Add Exception Information
str = str & "<TD><FONT FACE=VERDANA SIZE=2>"
str = str & rs("Exception"
& "</FONT></TD>"
'Add Date Added
str = str & "<TD><FONT FACE=VERDANA SIZE=2>"
str = str & rs("Date_Added"
& "</FONT></TD>"
'Add Date Modified
str = str & "<TD><FONT FACE=VERDANA SIZE=2>"
str = str & rs("Date_Modified"
& "</FONT></TD>"
'Close off the <TABLE> row
str = str & "</TR>"
rs.MoveNext
Wend
GetAllRegAssets = str
End Function
...
The lines in red above is where I think my problem is. Could anyone please give me a hand with this? Thanks much.
David C.
...
'Add 4247 Information
str = str & "<TD><FONT FACE=VERDANA SIZE=2>"
str = str & If rs("Signed_4247"
str = str & Else rs("Signed_4247"
'Add Exception Information
str = str & "<TD><FONT FACE=VERDANA SIZE=2>"
str = str & rs("Exception"
'Add Date Added
str = str & "<TD><FONT FACE=VERDANA SIZE=2>"
str = str & rs("Date_Added"
'Add Date Modified
str = str & "<TD><FONT FACE=VERDANA SIZE=2>"
str = str & rs("Date_Modified"
'Close off the <TABLE> row
str = str & "</TR>"
rs.MoveNext
Wend
GetAllRegAssets = str
End Function
...
The lines in red above is where I think my problem is. Could anyone please give me a hand with this? Thanks much.
David C.