Application.CreateReportControl (Access)
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)
Dim strReportName As String: strReportName =
Dim ctlCreateReportControl As Control
Set ctlCreateReportControl = CreateReportControl(ReportName:=strReportName, ControlType:=acAttachment)
Arguments
The following arguments are required:
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 that you want to create.
Here you can find possible values for
Optional arguments
The following arguments are optional
Section (AcSection) - An AcSection constant that identifies the section that will contain the new control.
Here you can find possible values for
Parent (String) - 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 (String) - The name of the field to which the control will be bound if it is to be a data-bound control.
Left - Long
Top - Long
Width - Long
Height - Long