CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 HELP REALLY FRUSTRATED.

Print topic Send  topic

Author Message
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






   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.