내보내기(0) 인쇄
모두 확장
확장 최소화

Form.Section Property (Access)

Office 2010

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

.Section(Index)

A variable that represents a Form object.

Parameters

Name

Required/Optional

Data Type

Description

Index

필수

Variant

The section number or name.

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

1

acHeader

Form header section

2

acFooter

Form footer section

3

acPageHeader

Form page header section

4

acPageFooter

Form page footer section

For forms and reports, the Section property is an array of all existing sections in the form 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.

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
Microsoft는 MSDN 웹 사이트에 대한 귀하의 의견을 이해하기 위해 온라인 설문 조사를 진행하고 있습니다. 참여하도록 선택하시면 MSDN 웹 사이트에서 나가실 때 온라인 설문 조사가 표시됩니다.

참여하시겠습니까?
표시:
© 2014 Microsoft