To capture the value from the report to determine whether or not to print the image on the form, use the following sample VB code:
' If the decision field is equal to Y, then enter IF statement
If thisform.fields("Decision_Field").value = "Y" Then

' Sets the visiblity of the decision fill field to false
ThisForm.Fields("Decision_Field").visible = false

' Activate the Image Fill Field
ThisForm.Fields("Image_Field").activate

' Set the path to the image file
ThisForm.Fields("Image_Field").value = "C:\FOLDER\FILE_NAME.EXT"

Else 

' Sets the visiblity of the decision fill field to false
ThisForm.Fields("Decision_Field").visible = false

' If the Decision fill field doens't meet the criterea, then don't print the image on the form
ThisForm.Fields("Image_Field").Printable = false

End If

 


Still have questions? We can help. Submit a case to Technical Support.

Last Modified On: December 10, 2016