Report. Page 属性 (权限)Report.Page property (Access)

打印报表时, Page 属性指定当前页码。The Page property specifies the current page number when a report is being printed. 读/写 Read/write Long.



_表达式_一个代表**Report** 对象的变量。expression A variable that represents a Report object.


尽管可以设置 页面 属性的值,通常使用此属性返回有关页码的信息。Although you can set the Page property to a value, you most often use this property to return information about page numbers.

此属性仅在打印预览中或打印时才可用。This property is only available in Print Preview or when printing.


下面的示例将更新报表的标题,以显示当用户在报表的页间来回切换时所在的当前位置。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

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.