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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting Visible property for Report control

Status
Not open for further replies.

TimSagstetter

Programmer
Feb 28, 2003
5
US
I'm trying to set the Visible property of a Report control in VBA, but the property does not appear in the editor pop-up list. Is this property not modifiable from code?
 
In the On Open event of your Report use the following syntax:

Me!MyControlName.Visible = False
Me!MyControlName.Visible = True

Your right about it not appearing in the list. For some reason that happens with lots of Methods, Properties etc.
 
Bill:

Thanks for the quick reply! You're right, it sure works even though the editor doesn't indicate the property. I guess I should have just tried it anyway. Next time . . .

Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top