Report question...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a signature on my report that I pasted on my report that is OLE
Unbound. I would like to hide it if a field(EmplName) on the report is not
equal XYZ.

How will I do that
 
In the Format event of the (Detail?) section, add this code to the event
procedure:

Dim bShow As Boolean
bShow = Nz(Me.EmplName = "XYZ", False)
If Me.[Sig].Visible <> bShow Then
Me.[Sig].Visible = bShow
End If

Change "Sig" to the name of your OLE Object control.
 
Thank you so much that helped...

Allen Browne said:
In the Format event of the (Detail?) section, add this code to the event
procedure:

Dim bShow As Boolean
bShow = Nz(Me.EmplName = "XYZ", False)
If Me.[Sig].Visible <> bShow Then
Me.[Sig].Visible = bShow
End If

Change "Sig" to the name of your OLE Object control.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.

Reply to group, rather than allenbrowne at mvps dot org.

JOM said:
I have a signature on my report that I pasted on my report that is OLE
Unbound. I would like to hide it if a field(EmplName) on the report is
not
equal XYZ.

How will I do that
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top