Report Page Event Question

  • Thread starter Thread starter John Lane
  • Start date Start date
J

John Lane

After I make something visible in the Page Event, how do I subsequently make
it not visible for the next page?
 
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

End Sub
 
John said:
After I make something visible in the Page Event, how do I subsequently make
it not visible for the next page?


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.
 
After I make something visible in the Page Event, how do I subsequently make
it not visible for 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.
 
Back
Top