Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

If statement with visible function in report?

Status
Not open for further replies.

Noah114

Technical User
Mar 31, 2005
59
0
0
US
How would I create a function that utilizes an "IF" statement which turns the visible marker from yes to no or no to yes on a image in a report?
 
You can use code in the On Format event of the section of the report containing the image. Something like:
Code:
If Me.txtSomething = Something Then
    Me.imgMyImage.Visible = True
  Else
    Me.imgMyImage.Visible = False
End If
or
Code:
   Me.imgMyImage.Visible = Me.txtSomething = Something


Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top