2015年4月27日 星期一

Access Report Section Property

This Access tutorial explains how to use Access Report Section Property to control Report Section such as Page Header, Footer.


Access Report Section Property


In Access Report VBA, you can directly access the Controls in the Report, it is also possible to access the Report Sections using Report Section Property, such as Page Header, Group Header, Page Footer, etc. This is especially useful to hide the whole Section.


Syntax of Report Section Property


Me.Section(Index)































IndexConstantDescription
0acDetailReport detail section
1acHeaderReport header section
2acFooterReport footer section
3acPageHeaderReport page header section
4acPageFooterReport page footer section
5acGroupLevel1HeaderGroup-level 1 header section
6acGroupLevel1FooterGroup-level 1 footer section
7acGroupLevel2HeaderGroup-level 2 header section
8acGroupLevel2FooterGroup-level 2 footer section

Example of Access Report Section Property


To hide Group Header Section in an Event


Me.Section(5).Visible = False

You may also read my another example below


Access Report page break by Group and add blank page


Outbound References


https://msdn.microsoft.com/en-us/library/office/ff192668.aspx



Access Report Section Property

沒有留言:

張貼留言