Application.CreateReportControl Method

Access Developer Reference

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


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

expression A variable that represents an Application object.


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 you want to create.
Section Optional AcSection An AcSection constant that identifying the section that will contain the new control.
Parent Optional 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 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

See Also