편집

다음을 통해 공유


Application.CreateReportControl method (Access)

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

Syntax

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

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
ReportName Required String The name of the open report on which you want to create the control.
ControlType Required AcControlType An AcControlType constant that represents the type of control that you want to create.
Section Optional AcSection An AcSection constant that identifies the section that will contain the new control.
Parent Optional Variant A string expression that identifies 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 Optional Variant The name of the field to which the control will be bound if it is to be a data-bound control.
Left, Top Optional Variant The coordinates for the upper-left corner of the control in twips.
Width, Height Optional Variant The width and height of the control in twips.

Return value

Control

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.