Not Printing $0 fields

E

Eric Chajmovic

Hello,

In my report, I am trying to supress the appearance of
two labels and a textbox on a report if the textbox
contains $0 (zero dollars). How can I do this?

Thanks,

Eric
 
M

Marshall Barton

Eric said:
In my report, I am trying to supress the appearance of
two labels and a textbox on a report if the textbox
contains $0 (zero dollars). How can I do this?

Use code in the Format event fo the section containing the
text box and labels:

Me.label1.Visible = (Me.thetextbox <> 0)
Me.label2.Visible = (Me.thetextbox <> 0)
Me.thetextbox.Visible = (Me.thetextbox <> 0)
 
D

Duane Hookom

You could use code in the On Format event of the section containing the
controls.

Me.lblLabelA.Visible = Me.txtA <> 0
Me.txtA.Visible = Me.txtA <> 0
 

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

Top