What Page event? I don't know of a report page event. Regardless, you can
use a static variable in the event to determine what it was last time and
reverse it. Then you change the value of the variable. A Boolean variable
works well for this:
Private Sub SomeEvent()
Static IsVisible As Boolean
IsVisible = Not IsVisible
Me.SomeObject.Visible = IsVisible
That doesn't seem to make sense. The page event is too late
to affect any control on the page. You can use It to set
control properties, but the change will not take effect
until the next page.
We can't see your database.
What is it you are trying to do?
If you are making a control visible or not you would use the Report
Section's Format or Print events, i.e the Detail Format event, not the
Page event.
Normally you would use the Page event to add lines or borders to the
report.
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.