Visibility

G

Guest

Hello,

A question already asked but It did not help me. I am asking again !

In a report, I would like to hide some text box if the value of a control is
0.
I tried this without success:
In the format event of the header,

If IsNull(Me.sumofmvts) Then Me.Label13.Visible = False

I tried also
If (Me.sumofmvts)=0 then
Me.Label13.Visible = False
End If

Nothing happens if it is not bugging.
Can anybody help me ?

Thanks in advance
Serge
 
D

Duane Hookom

You shouldn't need any code. Just set the format property to something like:
$#,##0.00[Green];($#,##0.00)[Red];"";""

The above expression is modified from a Help example after searching on
Format Numeric.
 

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