Forums

This topic is locked

Show picture if record is set to yes?

Posted 15 Oct 2002 11:11:17
1
has voted
15 Oct 2002 11:11:17 Henrik Sandeberg posted:
How do i show a picture instead of true/false in the results?, I want to have one picture for "true" and another for "false".

Henrik

Replies

Replied 15 Oct 2002 12:32:33
15 Oct 2002 12:32:33 Henrik Sandeberg replied:
Solved it!!, i used conditional regions.



Replied 15 Oct 2002 12:35:16
15 Oct 2002 12:35:16 Stefan P replied:
Hi Henrik

Use an "IF... THEN" statement. For example

<% If rsRecordset.Fields.Item("field".Value = TRUE Then
Response.Write ("<img src=picture1.jpg>"
Else Response.Write ("<img src=picture2.jpg>"
End If %>

Regards

Stefan

UD4 | ASP | VBScript | ACCESS | IIS5

Reply to this topic