Section Property

Section Property Applies to BoundObjectFrame Object ...

Section Property

Applies to

BoundObjectFrame Object

Image Object

OptionGroup Object

TabControl Collection

CheckBox Object

Label Object

Page Object

TextBox Object

ComboBox Object

Line Object

PageBreak Object

ToggleButton Object

CommandButton Object

ListBox Object

Rectangle Object

CustomControl Object

ObjectFrame Object

Report Object

Form Object

OptionButton Object

SubForm Object

Section property as it applies to controls on a form or report.

You can identify these controls by the section of a form or report where the control appears. Read/write Integer.

expression.Section

expression Required. An expression that returns one of the above objects.

Remarks

For controls, you can use the Section property to determine which section of a form or report a control is in.

Section property as it applies to the Form and Report objects.

You can use the Section property to identify a section of a form or report and provide access to the properties of that section. Read-only Section object.

expression.Section(Index)

expression Required. An expression that returns one of the above objects.

Index    Required Variant. The section number or name.

Remarks

The Section property corresponds to a particular section. You can use the following constants listed below. It is recommended that you use the constants to make your code easier to read.

Setting

Constant

Description

0

acDetail

Form detail section or report detail section

1

acHeader

Form or report header section

2

acFooter

Form or report footer section

3

acPageHeader

Form or report page header section

4

acPageFooter

Form or report page footer section

5

acGroupLevel1Header

Group-level 1 header section (reports only)

6

acGroupLevel1Footer

Group-level 1 footer section (reports only)

7

acGroupLevel2Header

Group-level 2 header section (reports only)

8

acGroupLevel2Footer

Group-level 2 footer section (reports only)


If a report has additional group-level sections, the header/footer pairs are numbered consecutively beginning with 9.

For forms and reports, the Section property is an array of all existing sections in the form or report specified by the section number. For example, Section(0) refers to a form's detail section and Section(3) refers to a form's page header section.

You can also refer to a section by name. The following statements refer to the Detail0 section for the Customers form and are equivalent.

Forms!Customers.Section(acDetail).Visible

Forms!Customers.Section(0).Visible

Forms!Customers.Detail0.Visible

For forms and reports, you must combine the Section property with other properties that apply to form or report sections.

Example

As it applies to controls on a form or report.

The following example uses the Section property to determine which section contains the CustomerID control.

Dim intSectionNumber As Integer
intSectionNumber = Forms!Customers!CustomerID.Section

As it applies to the Form and Report objects.

The following example shows how to refer to the Visible property of the page header section of the Customers form.

Forms!Customers.Section(acPageHeader).Visible

Forms!Customers.Section(3).Visible

Disclaimer : All images and content that you find here are believed to be in the "public domain". We do not intend to violate legitimate intellectual property, artistic rights or copyright. If you are the legitimate owner of one of the images and content posted on this site, and do not want to be displayed or if you need an appropriate credit, please contact us and we will immediately do whatever is needed by deleting or giving credit to the content displayed.

COMMENTS

Name

Google Aррѕ,1,lainnya,7522,Microsoft Access,1,Microsoft Excel,59,Microsoft Office,13,Microsoft Office 2003,4,Microsoft Office 2007,1,Microsoft Outlook,1,Microsoft Word,71,Mісrоѕоft Office Training,1,Mісrоѕоft Offісе 365,2,Office 2007,3,Power Map,1,PowerPoint,14,Windows Accessibility Options,1,
ltr
item
Microsoft Office Online: Section Property
Section Property
Microsoft Office Online
https://promisestoread.blogspot.com/2017/11/section-property.html
https://promisestoread.blogspot.com/
https://promisestoread.blogspot.com/
https://promisestoread.blogspot.com/2017/11/section-property.html
true
593202333244584315
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share. STEP 2: Click the link you shared to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy