This should be really easy but ... it isn't working.
status on my db (sql server) has of 0 or 1.
0 for false and 1 for true.
So I am saying if that if the value is 0 then print "Open"
if not, print "Complete"
The value that is being printed is always "Open"
I tried this first:
Dim strStart,strFinal
If strStart = 0 then
strFinal = " <font color=""#FF0000"">Open</font>"
else
strFinal = " <font color=""#009900"">Complete</font>"
end if
Response.Write "<font color=""#000000"">" & strFinal& "</font>"
it didn't work.
Then I tried this below:
Dim strStart,strFinal
Do While Not rst.EOF
if strStart = 0 then
strFinal = " <font color=""#FF0000"">Open</font>"
else
strFinal = " <font color=""#009900"">Complete</font>"
end if
Response.Write "<font color=""#000000"">" & strFinal& "</font>"
rst.MoveNext
but still getting "Open" as value.
Please tell me what I am doing wrong.