Application.CreateReportControl Method (Access)

Office 2010

The CreateReportControl method creates a control on a specified open report. For more information, see the CreateControl method.

.CreateReportControl(ReportName, ControlType, Section, Parent, ColumnName, Left, Top, Width, Height)

A variable that represents an Application object.

Parameters

Name

Required/Optional

Data Type

Description

ReportName

필수

String

The name of the open report on which you want to create the control.

ControlType

필수

AcControlType

An AcControlType constant that represents the type of control you want to create.

Section

선택

AcSection

An AcSection constant that identifying the section that will contain the new control.

Parent

선택

Variant

A string expression identifying the name of the parent control of an attached control. For controls that have no parent control, use a zero-length string for this argument, or omit it.

ColumnName

선택

Variant

The name of the field to which the control will be bound, if it is to be a data-bound control.

Left, Top

선택

Variant

The coordinates for the upper-left corner of the control in twips.

Width, Height

선택

Variant

The width and height of the control in twips.

Return Value

Control

표시: