Attachment.ControlType property (Access)

Use the ControlType property in Visual Basic to determine the type of control on a form or report. Read/write Byte.

Syntax

expression.ControlType

expression A variable that represents an Attachment object.

Remarks

The ControlType property setting is an AcControlType constant that specifies the control type.

The ControlType property can only be set by using Visual Basic in form Design view or report Design view, but it can be read in all views.

The ControlType property is also used to specify the type of control to create when you are using the CreateControl method.

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.