Attachment Members (Access)
This object corresponds to an attachment control. Use an attachment control when you want to manipulate the contents fields of the attachment data type.
Methods
Name |
Description |
---|---|
Moves the focus to the previous file in the specified Attachment control. |
|
Moves the focus to the next file in the specified Attachment control. |
|
Moves the specified object to the coordinates specified by the argument values. |
|
The Requery method updates the data underlying a specified control that's on the active form by requerying the source of data for the control. |
|
The SetFocus method moves the focus to the specified form, the specified control on the active form, or the specified field on the active datasheet. |
|
You can use the SizeToFit method to size a control so it fits the text or image that it contains. |
Properties
Name |
Description |
---|---|
Specifies whether a colon follows the text in labels for new controls. Read/write Boolean. |
|
Returns or sets which macro, event procedure, or user-defined function runs when the AfterUpdate event occurs. Read/write String. |
|
You can use the Application property to access the active Microsoft Access Application object and its related properties. Read-only Application object. |
|
Gets the number of documents attached to the specified Attachment control. Read-only Long. |
|
Specifies whether labels are automatically created and attached to new controls. Read/write Boolean. |
|
Gets or sets the interior color of the specified object. Read/write Long. |
|
Gets or sets the shade that is applied to the theme color in the BackColor property of the specified object. Read/write Single. |
|
You can use the BackStyle property to specify whether a control will be transparent. Read/write Byte. |
|
Gets or sets a value that represents a color in the applied color theme associated with the BackColor property of the specified object. Read/write Long. |
|
Gets or sets the tint that is applied to the theme color in the BackColor property of the specified object. Read/write Single. |
|
Returns or sets which macro, event procedure, or user-defined function runs when the BeforeUpdate event occurs. Read/write String. |
|
You can use the BorderColor property to specify the color of a control's border. Read/write Long. |
|
Gets or sets the shade that is applied to the theme color in the BorderColor property of the specified object. Read/write Single. |
|
Specifies how a control's border appears. Read/write Byte. |
|
Gets or sets a value that represents a color in the applied color theme that is associated with the BorderColor property of the specified object. Read/write Long. |
|
Gets or sets the tint that is applied to the theme color in the BorderColor property of the specified object. Read/write Single. |
|
You can use the BorderWidth property to specify the width of a control's border. Read/write Byte. |
|
Gets or sets the amount of space (in inches) between the attachment and its bottom gridline. Read/write Integer. |
|
You can use the ColumnHidden property to show or hide a specified column in Datasheet view. Read/write Boolean. |
|
You can use the ColumnOrder property to specify the order of the columns in Datasheet view. Read/write Integer. |
|
You can use the ColumnWidth property to specify the width of a column in Datasheet view. Read/write Integer. |
|
Returns the Controls collection of a form, subform, report or section. Read-only Controls. |
|
You can use the ControlSource property to specify what data appears in the specified Attachment control. Read/write String. |
|
You can use the ControlTipText property to specify the text that appears in a ScreenTip when you hold the mouse pointer over a control. Read/write String. |
|
You can use the ControlType property in Visual Basic to determine the type of a control on a form or report. Read/write Byte. |
|
Gets the index number of the file that has the focus in the Attachment control. Read/write Long. |
|
Gets or sets the path and file name of the graphic to be used as a background picture on an attachment control. Read/write String. |
|
Gets or sets the method used to store the image specified by the DefaultPicture property in the database. Read/write Byte. |
|
Gets or sets an AcDisplayAs constant that specifies how a file should be displayed in the Attachment control. Read/write. |
|
You can use the DisplayWhen property to specify which of a form's controls you want displayed on screen and in print. Read/write Byte. |
|
You can use the Enabled property to set or return the status of the conditional format in the FormatCondition object. Read/write Boolean. |
|
Gets or sets the prefix portion of an event procedure name. Read/write String. |
|
Returns the full file name of the specified attachment. Read-only String. |
|
Returns the file extension of the specifed attachment. Read-only String. |
|
Returns the Uniform Resource Locator (URL) of the specified attachment. Read-only String. |
|
Gets or sets the color of the gridline for the specified attachment. Read/write Long. |
|
Gets or sets the shade applied to the theme color in the GridlineColor property of the specified object. Read/write Single. |
|
Gets or sets the bottom gridline style of the specified attachment. Read/write Byte. |
|
Gets or sets the width of the bottom gridline for the specified attachment. Read/write Byte. |
|
Gets or sets the right gridline style of the specified attachment. Read/write Byte. |
|
Gets or sets the top gridline style of the specified attachment. Read/write Byte. |
|
Gets or sets the theme color index that represents a color in the applied color theme associated with the GridlineColor property of the specified object. Read/write Long. |
|
Gets or sets the tint applied to the theme color in the GridlineColor property of the specified object. Read/write Single. |
|
Gets or sets the width of the bottom gridline for the specified attachment. Read/write Byte. |
|
Gets or sets the width of the left gridline for the specified attachment. Read/write Byte. |
|
Gets or sets the width of the right gridline for the specified attachment. Read/write Byte. |
|
Gets or sets the width of the top gridline for the specified attachment. Read/write Byte. |
|
Gets or sets the height of the specified object in twips. Read/write Integer. |
|
The HelpContextID property specifies the context ID of a topic in the custom Help file specified by the HelpFile property setting. Read/write Long. |
|
Gets or sets an AcHorizontalAnchor constant that indicates how the attachment is anchored horizontally within its layout. Read/write. |
|
You can use the InSelection property to determine or specify whether a control on a form in Design view is selected. Read/write Boolean. |
|
You can use the IsVisible property to determine whether a control on a report is visible. Read/write Boolean. |
|
The LabelAlign property specifies the text alignment within attached labels on new controls. Read/write Byte. |
|
The LabelX property (along with the LabelY property) specifies the placement of the label for a new control. Read/write Integer. |
|
The LabelY property (along with the LabelX property) specifies the placement of the label for a new control. Read/write Integer. |
|
Returns the type of layout for the specified attachment. Read-only AcLayoutType. |
|
Returns the unique identifier for the layout that contains the specified attachment. Read-only Long. |
|
You can use the Left property to specify an object's location on a form or report. Read/write Integer. |
|
Gets or sets the amount of space (in inches) between the attachment and its left gridline. Read/write Integer. |
|
The Locked property specifies whether you can edit data in a control in Form view. Read/write Boolean. |
|
You can use the Name property to specify or determine the string expression that identifies the name of an object. Read/write String. |
|
You can use this property to set or return the unedited value of the BorderStyle property for a form or control. This property is useful if you need to revert to an unedited or preferred border style. Read/write Byte. |
|
You can use the OldValue property to determine the unedited value of a bound control. Read-only Variant. |
|
Sets or gets the value of the On Attachment Current box in the Properties window of the specified Attachment. Read/write. |
|
Sets or returns the value of the On Change box in the Properties window of one of the objects in the Applies To list. Read/write String. |
|
Sets or returns the value of the On Click box in the Properties window. Read/write String. |
|
Sets or returns the value of the On Dbl Click box in the Properties window. Read/write String. |
|
Sets or returns the value of the On Dirty box in the Properties window of a form or report. Read/write String. |
|
Sets or returns the value of the On Enter box in the Properties window of the specified object. Read/write String. . |
|
Sets or returns the value of the On Exit box in the Properties window of the specified object. Read/write String. . |
|
Sets or returns the value of the On Got Focus box in the Properties window of the specified object. Read/write String. |
|
Sets or returns the value of the On Key Down box in the Properties window. Read/write String. |
|
Sets or returns the value of the On Key Press box in the Properties window. Read/write String. |
|
Sets or returns the value of the On Key Up box in the Properties window. Read/write String. |
|
Sets or returns the value of the On Lost Focus box in the Properties window of the specified object. Read/write String. |
|
Sets or returns the value of the On Mouse Down box in the Properties window. Read/write String. |
|
Sets or returns the value of the On Mouse Move box in the Properties window. Read/write String. |
|
Sets or returns the value of the On Mouse Up box in the Properties window. Read/write String. |
|
Returns the parent object for the specified object. Read-only. |
|
You can use the PictureAlignment property to specify where a background picture will appear in the Attachment control. Read/write Byte. |
|
You can use the PictureSizeMode property to specify how a picture for an attachment control is sized. Read/write Byte. |
|
You can use the PictureTiling property to specify whether a background picture is tiled across the entire attachment control. Read/write Boolean. |
|
Returns a reference to a control's Properties collection object. Read-only. |
|
Gets or sets the amount of space (in inches) between the attachment and its right gridline. Read/write Integer. |
|
You can identify these controls by the section of a form or report where the control appears. Read/write Integer. |
|
You can use the ShortcutMenuBar property to specify the shortcut menu that will appear when you right-click the specified object. Read/write String. |
|
You can use the SpecialEffect property to specify whether special formatting will apply to the specified object. Read/write Byte. |
|
You can use the StatusBarText property to specify the text that is displayed in the status bar when a control is selected. Read/write String. |
|
You can use the TabIndex property to specify a control's place in the tab order on a form. Read/write Integer. |
|
You can use the TabStop property to specify whether you can use the TAB key to move the focus to a control in Form view. Read/write Boolean. |
|
Stores extra information about a control needed by a Microsoft Access application. Read/write String. |
|
You can use the Top property to specify an object's location on a form or report. Read/write Integer. . |
|
Gets or sets the amount of space (in inches) between the attachment and its top gridline. Read/write Integer. |
|
Gets or sets an AcVerticalAnchor constant that indicates how the specified attachment is anchored vertically within its layout. Read/write. |
|
Returns or sets whether the object is visible. Read/write Boolean. |
|
Gets or sets the width of the specified object in twips. Read/write Integer. |
Events
Name |
Description |
---|---|
Returns or sets which macro, event procedure, or user-defined function runs when the AfterUpdate event occurs. Read/write String. |
|
Occurs when the focus moves to or from a file contained in the specified Attachment control, making it the current attachment, or when the form is refreshed or requeried. |
|
The BeforeUpdate event occurs before changed data in a control or record is updated. |
|
The Change event occurs when the contents of the specified control change. |
|
The Click event occurs when the user presses and then releases a mouse button over an object. |
|
The DblClick event occurs when the user presses and releases the left mouse button twice over an object within the double-click time limit of the system. |
|
The Dirty event occurs when the content of the specified control changes. |
|
The Enter event occurs before a control actually receives the focus from a control on the same form. |
|
The Exit event occurs just before a control loses the focus to another control on the same form. |
|
The GotFocus event occurs when the specified object receives the focus. |
|
The KeyDown event occurs when the user presses a key while a form or control has the focus. This event also occurs if you send a keystroke to a form or control by using the SendKeys action in a macro or the SendKeys statement in Visual Basic. |
|
The KeyPress event occurs when the user presses and releases a key or key combination that corresponds to an ANSI code while a form or control has the focus. This event also occurs if you send an ANSI keystroke to a form or control by using the SendKeys action in a macro or the SendKeys statement in Visual Basic. |
|
The KeyUp event occurs when the user releases a key while a form or control has the focus. This event also occurs if you send a keystroke to a form or control by using the SendKeys action in a macro or the SendKeys statement in Visual Basic. |
|
The LostFocus event occurs when the specified object receives the focus. |
|
The MouseDown event occurs when the user presses a mouse button. |
|
The MouseMove event occurs when the user moves the mouse. |
|
The MouseUp event occurs when the user releases a mouse button. |