C
Christos
This is my first post so I would like to start by saying that this is a great
site and it's amazing how helpfull, and knowledgeable, the contributors are.
My question relates to the page event and property. It seems that when a
report is previewed the page event occurs only when paging forward. In fact,
I wasn't able to have any event triggered paging backwards through the report
pages. Is this right, or am I doing something wrong?
The page property also updates only on forward paging. So when I try the
code given in Access help under 'Page Property' (see below), I get the right
caption only going forward. When I page backwards, the caption doesn't
update to the correct page number. The same happens if I use a timer event
on a form that displays the previewd report's page number in a text box.
When I page forward in the report preview, the form textbox shows the correct
page number, but when I page backwards the textbox doesn't update. It should,
according to Access help.
The following example is from Access help under 'Page Property' :
Example
The following example updates the report's caption to display the current
position in the report as the user pages back and forth in the report.
Private Sub Report_Page()
Me.Caption = "Now Viewing Page " & Me.Page & " Of " & Me.Pages & " Page(s)"
End Sub
Am I doing something wrong or is this a bug, or an incorrect example?
site and it's amazing how helpfull, and knowledgeable, the contributors are.
My question relates to the page event and property. It seems that when a
report is previewed the page event occurs only when paging forward. In fact,
I wasn't able to have any event triggered paging backwards through the report
pages. Is this right, or am I doing something wrong?
The page property also updates only on forward paging. So when I try the
code given in Access help under 'Page Property' (see below), I get the right
caption only going forward. When I page backwards, the caption doesn't
update to the correct page number. The same happens if I use a timer event
on a form that displays the previewd report's page number in a text box.
When I page forward in the report preview, the form textbox shows the correct
page number, but when I page backwards the textbox doesn't update. It should,
according to Access help.
The following example is from Access help under 'Page Property' :
Example
The following example updates the report's caption to display the current
position in the report as the user pages back and forth in the report.
Private Sub Report_Page()
Me.Caption = "Now Viewing Page " & Me.Page & " Of " & Me.Pages & " Page(s)"
End Sub
Am I doing something wrong or is this a bug, or an incorrect example?