Lindsay
|
| Posted: 08/07/2002, 7:08 PM |
|
I would like to have a if then statment show results in a field of a form. Here is the code I have tried it multiple ways etc. Right now it displays and nothing else does just the results. I want it in the field per record it self. I have tried putting the code in the footer, before show, etc.
Global Functions
IF (fldPhotoYesNo) = "1" Then
Response.write ("<img src = images/photo.gif>")
Else
Response.write ("<HTML>-- No Photo --</html>")
End IF
Response.end
before show or footer
CALL CAMERA
fldPhotoYesNo= CAMERA
What do I do and where do I put the code???? Tried it as a subroutine etc.
|
|
|
 |
www.adenin.nl
|
| Posted: 08/07/2002, 9:21 PM |
|
Hi,
I don't know exactly what you would like but I am using for CC2/ASP:
In the before show event of a grid or record:
if fldPicture = "1" then
fldPicture = "<img src = images/1.gif>"
else
end if
if fldPicture = "2" then
fldPicture = "<img src = images/2.gif>"
else
end if
if fldPicture = "3" then
fldPicture = "<img src = images/3.gif>"
else
end if
---
Regards,
Marco
www.adenin.nl
info@adenin.nl
|
|
|
 |
|