A
altreed
Hi,
I am new to ASP, HTML and iis.
I have my asp code working so that I can retrieve my desired record
from the database. I can place the data on the screen in table form.
All works fine.
I wish to evaluate one field in the record and depending on the value
in that field I wish to change the colour of the line in the table. As
in a status check.
My DB field is NCHAR.
I need to be able to do something like this....
IF rs.statusoferror = "Closed" THEN
response.write "it works"
END IF
I cannot find a way to return true for - rs.statusoferror = "Closed"
It is like the datatype is not compatible with my variable. If I
write rs.statusoferror to the screen it comes up with - Closed , but I
cannot evaluate with the same text.
I tried CAST, unsuccessfully. Am I barking up the wrong tree?
Cheers for any help.
Dave
I am new to ASP, HTML and iis.
I have my asp code working so that I can retrieve my desired record
from the database. I can place the data on the screen in table form.
All works fine.
I wish to evaluate one field in the record and depending on the value
in that field I wish to change the colour of the line in the table. As
in a status check.
My DB field is NCHAR.
I need to be able to do something like this....
IF rs.statusoferror = "Closed" THEN
response.write "it works"
END IF
I cannot find a way to return true for - rs.statusoferror = "Closed"
It is like the datatype is not compatible with my variable. If I
write rs.statusoferror to the screen it comes up with - Closed , but I
cannot evaluate with the same text.
I tried CAST, unsuccessfully. Am I barking up the wrong tree?
Cheers for any help.
Dave