Control visability of Label on a report

D

Dave

I have a label box on a report that I have set as Visable=NO.
However when a check box on the form generating the report is checked I want
to change the visability of that label on the report to YES.

Hope I said that clearly enough.

Any help here will be appreciated.

Thanks in advance

Dave
 
M

Mr. B

I have a label box on a report that I have set as Visable=NO.
However when a check box on the form generating the report is checked I want
to change the visability of that label on the report to YES.

Hope I said that clearly enough.

Any help here will be appreciated.

Thanks in advance

Dave

Hi, Dave,

Use the On Format event in the section of your report where the label
appears for you code.

You will have to fully reference the control on your form that has the
checkbox, something like (air code but pretty close):

if Forms![NameOfYourForm]![NameOfChkBox] = true then
me.NameOfLabel.visible = true
else
me.NameOfLabel.visible = false
end if

HTH

Mr. B
 
D

Dave

Its a beautiful thing.

Did not see an "On Format" event for the Report but I put it in the "On
Open" even of the report and it works great.

Thanks - much appreciated

Dave
 

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