Form Members (Access)
A Form object refers to a particular Microsoft Access form.
Methods
Name |
Description |
---|---|
The GoToPage method moves the focus to the first control on a specified page in the active form. |
|
Moves the specified object to the coordinates specified by the argument values. |
|
The Recalc method immediately updates all calculated controls on a form. |
|
The Refresh method immediately updates the records in the underlying record source for a specified form or datasheet to reflect changes made to the data by you and other users in a multiuser environment. |
|
The Repaint method completes any pending screen updates for a specified form. When performed on a form, the Repaint method also completes any pending recalculations of the form's controls. |
|
The Requery method updates the data underlying a specified form by requerying the source of data for the form. |
|
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 Undo method to reset a control or form when its value has been changed. |
Properties
Name |
Description |
---|---|
You can use the ActiveControl property together with the Screen object to identify or refer to the control that has the focus. Read-only Control object. |
|
Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the AfterDelConfirm event occurs. Read/write. |
|
Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the AfterFinalRender event occurs. Read/write. |
|
Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the AfterInsert event occurs. Read/write. |
|
Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the AfterLayout event occurs. Read/write. |
|
Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the AfterRender event occurs. Read/write. |
|
Returns or sets which macro, event procedure, or user-defined function runs when the AfterUpdate event occurs. Read/write String. |
|
You can use the AllowAdditions property to specify whether a user can add a record when using a form. Read/write Boolean. |
|
Returns or sets a Boolean indicating whether the specified form may be viewed in Datasheet View. True if Datasheet View is allowed. Read/write. |
|
You can use the AllowDeletions property to specify whether a user can delete a record when using a form. Read/write Boolean. |
|
You can use the AllowEdits property to specify whether a user can edit saved records when using a form. Read/write Boolean. |
|
You can use the AllowFilters property to specify whether records in a form can be filtered. Read/write Boolean. |
|
Returns or sets a Boolean indicating whether the specified form may be viewed in Form View. True if Form View is allowed. Read/write. |
|
Gets or sets whether the specified form can be used in Layout View. Read/write Boolean. |
|
Returns or sets a Boolean indicating whether the specified form may be viewed in PivotChart View. True if PivotChart View is allowed. Read/write. |
|
Returns or sets a Boolean indicating whether the specified form may be viewed in PivotTable View. True if PivotTable View is allowed. Read/write. |
|
You can use the Application property to access the active Microsoft Access Application object and its related properties. Read-only Application object. |
|
Returns or sets a Boolean indicating whether a form will be centered automatically in the application window when the form is opened. Read/write. |
|
Returns or sets a Boolean indicating whether a Form window opens automatically sized to display complete records. Read/write. |
|
Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the BeforeDelConfirm event occurs. Read/write. |
|
Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the BeforeInsert event occurs. Read/write. |
|
Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the BeforeQuery event occurs. Read/write. |
|
Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the BeforeRender event occurs. Read/write. |
|
Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the BeforeScreenTip event occurs. Read/write. |
|
Returns or sets which macro, event procedure, or user-defined function runs when the BeforeUpdate event occurs. Read/write String. |
|
You can use the Bookmark property with forms to set a bookmark that uniquely identifies a particular record in the form's underlying table, query, or SQL statement. Read/write Variant. |
|
Specifies the type of border and border elements (title bar, Control menu, Minimize and Maximize buttons, or Close button) to use for the form. You typically use different border styles for normal forms, pop-up forms, and custom dialog boxes. Read/write Byte. |
|
Gets or sets the text that appears in the title bar in Form view. Read/write String. |
|
Returns a ChartSpace object. Read-only. |
|
Specifies whether the Close button on a form is enabled. Read/write Boolean. |
|
Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the CommandBeforeExecute event occurs. Read/write. |
|
Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the CommandChecked event occurs. Read/write. |
|
Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the CommandEnabled event occurs. Read/write. |
|
Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the CommandExecute event occurs. Read/write. |
|
Specifies whether a form has a Control menu in Form view and Datasheet view. Read/write Boolean. |
|
Returns the Controls collection of a form, subform, report or section. Read-only Controls. |
|
You can use the Count property to determine the number of items in a specified collection. Read-only Integer. |
|
You can use the CurrentRecord property to identify the current record in the recordset being viewed on a form. Read/write Long. |
|
You can use this property to determine the distance in twips from the left side of the current section to the left side of the form. Read/write Integer. |
|
You can use this property to determine the distance in twips from the top edge of the current section to the top edge of the form. Read/write Integer. |
|
You can use the CurrentView property to determine how a form is currently displayed. Read/write Integer. |
|
You can use the Cycle property to specify what happens when you press the TAB key and the focus is in the last control on a bound form. Read/write Byte. |
|
Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the DataChange event occurs. Read/write. |
|
You can use the DataEntry property to specify whether a bound form opens to allow data entry only. The Data Entry property doesn't determine whether records can be added; it only determines whether existing records are displayed. Read/write Boolean. |
|
Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the DataSetChange event occurs. Read/write. |
|
Gets or sets the color displayed on alternate rows of a form's datasheet. Read/write Long. |
|
You can use the DatasheetBackColor property in Visual Basic to specify or determine the background color of an entire table, query, or form in Datasheet view within a Microsoft Access database. Read/write Long. |
|
Returns or sets a Byte indicating the line style to use for the border of the specified datasheet. Read/write. |
|
You can use the DatasheetCellsEffect property to specify whether special effects are applied to cells in a datasheet. Read/write Byte. |
|
Returns or sets a Byte indicating the line style to use for the bottom edge of the column headers on the specified datasheet. Read/write. |
|
You can use the DatasheetFontHeight property to specify the font point size used to display and print field names and data in Datasheet view. Read/write Integer. |
|
You can use the DatasheetFontItalic property to specify an italicized appearance for field names and data in Datasheet view. Read/write Boolean. |
|
You can use the DatasheetFontName property to specify the font used to display and print field names and data in Datasheet view. Read/write String. |
|
You can use the DatasheetFontUnderline property to specify an underlined appearance for field names and data in Datasheet view. Read/write Boolean. |
|
You can use the DatasheetFontWeight property to specify the line width of the font used to display and print characters for field names and data in Datasheet view. Read/write Integer. |
|
You can use the DatasheetForeColor property in Visual Basic to specify or determine the color of all text in a table, query, or form in Datasheet view within an Access database. Read/write Long. |
|
You can use the DatasheetGridlinesBehavior property to specify which gridlines will appear in Datasheet view. Read/write Byte. |
|
You can use the DatasheetGridlinesColor property to specify the color of gridlines in a datasheet. Read/write Long. |
|
The DefaultControl property returns a Control object with which you can set the default properties for a particular type of control on a particular form. Read-only. |
|
You can use the DefaultView property to specify the opening view of a form. Read/write Byte. |
|
You can use the Dirty property to determine whether the current record has been modified since it was last saved. Read/write Boolean. |
|
Gets or sets whether the specified form can be made available as a view on a Windows SharePoint Services 3.0 site. Read/write Byte. |
|
You can use the DividingLines property to specify whether dividing lines will separate sections on a form or records displayed on a continuous form. Read/write Boolean. |
|
You can use the FastLaserPrinting property to specify whether lines and rectangles are replaced by text character lines — similar to the underscore (_) and vertical bar (|) characters — when you print a form using most laser printers. Replacing lines and rectangles with text character lines can make printing much faster. Read/write Boolean. |
|
Returns or sets a Boolean indicating whether Microsoft Access shows default values for new rows on the specified form before the row is saved. True if Access shows the default values for new rows on the specified form. Read/write. |
|
You can use the Filter property to specify a subset of records to be displayed when a filter is applied to a form, report query, or table. Read/write String. |
|
You can use the FilterOn property to specify or determine whether the Filter property for a form or report is applied. Read/write Boolean. |
|
Gets or sets whether the filter specified by the Filter property is applied when the form is loaded. Read/write Boolean. |
|
Gets or sets whether the width of the form is reduced to fit the width of the screen. Read/write Boolean. |
|
You can use the Form property to refer to a form or to refer to the form associated with a subformcontrol. Read-only Form. |
|
You can use the FrozenColumns property to determine how many columns in a datasheet are frozen. Read/write Integer. |
|
You can use the GridX property (along with the GridY property) to specify the horizontal and vertical divisions of the alignment grid in form Design view. Read/write Integer. |
|
You can use the GridY property (along with the GridX property) to specify the horizontal and vertical divisions of the alignment grid in form Design view. Read/write Integer. |
|
You can use the HasModule property to specify or determine whether a form or report has a class module. Read/write Boolean. |
|
The HelpContextID property specifies the context ID of a topic in the custom Help file specified by the HelpFile property setting. Read/write Long. |
|
The name of a help file associated with a form. Read/write String. |
|
Returns or sets a Byte indicating the line style to use for horizontal gridlines on the specified datasheet. Read/write. |
|
You can use the hWnd property to determine the handle (a unique Long Integer value) assigned by Microsoft Windows to the current window. Read/write Long. |
|
You can use the InputParameters property to specify or determine the input parameters that are passed to a SQL statement in the RecordSource property of a form or report or a stored procedure when used as the record source within a Microsoft Access project (.adp). Read/write String. |
|
You can use the InsideHeight property (along with the InsideWidth property) to determine the height and width (in twips) of the window containing a form. Read/write Long. |
|
You can use the InsideWidth property (along with the InsideHeight property) to determine the height and width (in twips) of the window containing a form. Read/write Long. |
|
You can use the KeyPreview property to specify whether the form-level keyboard event procedures are invoked before a control's keyboard event procedures. Read/write Boolean. |
|
You can use the LayoutForPrint property to specify whether the form uses printer or screen fonts. Read/write Boolean. |
|
You can use the MaxRecButton property to specify or determine if the maximum record limit button is available on the navigation bar of a form in Datasheet view or Form view. Read/write Boolean. |
|
Specifies the maximum number of records by a query or view. Read/write Long. |
|
Specifies a custom menu to display for a form. Read/write String. |
|
You can use the MinMaxButtons property to specify whether the Maximize and Minimize buttons will be visible on a form. Read/write Byte. |
|
You can use the Modal property to specify whether a form opens as a modal window. When a form opens as a modal window, you must close the window before you can move the focus to another object. Read/write Boolean. |
|
You can use the Module property to specify a form module. Read-only Module object. |
|
Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the MouseWheel event occurs. Read/write. |
|
Returns or sets a Boolean indicating whether the specified form can be moved by the user; True if it can be moved. Read/write. |
|
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 the NavigationButtons property to specify whether navigation buttons and a record number box are displayed on a form. Read/write Boolean. |
|
Gets or sets the text that appears to the left of the form's navigation buttons. Read/write String. |
|
You can use the NewRecord property to determine whether the current record is a new record. Read-only Integer. |
|
Sets or returns the value of the On Activate box in the Properties window of a form or report. Read/write String. |
|
Sets or returns the value of the On Apply Filter box in the Properties window of a form. 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 Close box in the Properties window of a form or report. Read/write String. |
|
Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the OnConnect event occurs. Read/write. |
|
Sets or returns the value of the On Current box in the Properties window of a form. 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 Deactivate box in the Properties window of a form or report. Read/write String. |
|
Sets or returns the value of the On Delete box in the Properties window of a form. 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. |
|
Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the OnDisconnect event occurs. Read/write. |
|
Sets or returns the value of the OnError box in the Properties window of a form or report. Read/write String. |
|
Sets or returns the value of the On Filter box in the Properties window of a form. 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 Before Insert box in the Properties window of a form. 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 Load box in the Properties window of a form. 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. |
|
Sets or returns the value of the On Open box in the Properties window of a form or report. Read/write String. |
|
Sets or returns the value of the On Resize box in the Properties window of a form. Read/write String. |
|
Sets or returns the value of the On Timer box in the Properties window of a form. Read/write String. |
|
Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the Undo event occurs. Read/write.. |
|
Sets or returns the value of the On Unload box in the Properties window of a form. Read/write String. |
|
Determines the string expression specified by the OpenArgs argument of the OpenForm method that opened a form. Read/write Variant. |
|
You can use the OrderBy property to specify how you want to sort records in a form. Read/write String. |
|
You can use the OrderByOn property to specify whether an object's OrderBy property setting is applied. Read/write Boolean. |
|
Gets or sets whether the sorting specified by the OrderBy property is applied when the form is loaded. Read/write Boolean. |
|
You can use the Orientation property to specify or determine the view orientation. Read/write Byte. |
|
The Page property specifies the current page number when a form is being printed. Read/write Long. |
|
You can use the Pages property to return information needed to print page numbers in a form. Read/write Integer. |
|
You can use the Painting property to specify whether a form is repainted. Read/write Boolean. |
|
You can use the PaintPalette property to specify a palette to be used by a form. Read/write Variant. |
|
You can use the PaletteSource property to specify the palette for a form. Read/write String. |
|
Returns the parent object for the specified object. Read-only. |
|
You can use the Picture property to specify a bitmap or other type of graphic to be used as a background picture on a form. Read/write String. |
|
You can use the PictureAlignment property to specify where a background picture will appear in an image control or on a form or report. Read/write Byte.Read/write. |
|
You can use the PictureData property to copy the picture to another object that supports the Picture property. Read/write Variant. |
|
You can use the PicturePalette property to specify a palette to be used by a form. Read/write Variant. |
|
You can use the PictureSizeMode property to specify how a picture for a form or report is sized. Read/write Byte. |
|
You can use the PictureTiling property to specify whether a background picture is tiled across the entire image control, Form window, form, or page of a report. Read/write Boolean. |
|
You can use the PictureType property to specify whether Microsoft Access stores an object's picture as a linked or an embedded object. Read/write Byte. |
|
Returns a PivotTable object representing a PivotTable View on a form. Read-only. |
|
Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the PivotTableChange event occurs. Read/write. |
|
Specifies whether a form opens as a pop-up window. Read/write Boolean. |
|
Returns or sets a Printer object representing the default printer on the current system. Read/write. |
|
Returns a reference to a control's Properties collection object. Read-only. |
|
You can use the PrtDevMode property to set or return printing device mode information specified for a form or report in the Print dialog box. Read/write Variant. |
|
You can use the PrtDevNames property to set or return information about the printer selected in the Print dialog box for a form or report. Read/write Variant. |
|
You can use the PrtMip property in Visual Basic to set or return the device mode information specified for a form or report in the Print dialog box. |
|
Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the Query event occurs. Read/write. |
|
You can use the RecordLocks property to determine how records are locked and what happens when two users try to edit the same record at the same time. Read/write. |
|
You can use the RecordSelectors property to specify whether a form displays record selectors in Form view. Read/write Boolean. |
|
Returns or sets the ADO Recordset or DAO Recordset object representing the record source for the specified object. Read/write Object. |
|
You can use the RecordsetClone property to refer to a form's Recordset object specified by the form's RecordSource property. Read-only. |
|
You can use the RecordsetType property to specify what kind of recordset is made available to a form. Read/write Byte. |
|
You can use the RecordSource property to specify the source of the data for a form. Read/write String. |
|
Returns or sets a String indicating the SQL Server owner name of the record source for the specified form. Read/write. |
|
You can use the ResyncCommand property to specify or determine the SQL statement or stored procedure that will be used in an updateable snapshot of a table. Read/write String. |
|
Gets or set the name of the customized ribbon to be displayed when the specified form is loaded. Read/write String. |
|
You can use the RowHeight property to specify the height of all rows in Datasheet view. Read/write Integer. |
|
You can use the ScrollBars property to specify whether scroll bars appear on a form. Read/write Byte. |
|
You can use the Section property to identify a section of a form and provide access to the properties of that section. Read-only Section object. |
|
Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the SelectionChange event occurs. Read/write. |
|
You can use the SelHeight property to specify or determine the number of selected rows (records) in the current selection rectangle in a table, query, or form datasheet, or the number of selected records in a continuous form. Read/write Long. |
|
You can use the SelLeft property to specify or determine which column (field) is leftmost in the current selection rectangle. Read/write Long. |
|
You can use the SelTop property to specify or determine which row (record) is topmost in the current selection rectangle in a table, query, or form datasheet, or which selected record is topmost in a continuous form.Read/write Long. |
|
You can use the SelWidth property to specify or determine the number of selected columns (fields) in the current selection rectangle. Read/write Long. |
|
You can use the ServerFilter property to specify a subset of records to be displayed when a server filter is applied to a form within a Microsoft Access project (.adp) or database. Read/write String. |
|
You can use the ServerFilterByForm property to specify or determine whether a form is opened in the Server Filter By Form window. Read/write Boolean. |
|
You can use the ShortcutMenu property to specify whether a shortcut menu is displayed when you right-click an object on a form. For example, you might want to disable a shortcut menu to prevent the user from changing the form's underlying record source by using one of the filtering commands on the form's shortcut menu. Read/write Boolean. |
|
You can use the ShortcutMenuBar property to specify the shortcut menu that will appear when you right-click on the specified object. Read/write String. |
|
Gets or sets whether the user can edit records in the datasheet when a form is displayed in Split Form view. Read/write AcSplitFormDatasheet. |
|
Gets or sets the position of the datasheet relative to the form when the form is displayed in Split Form view. Read/write AcSplitFormOrientation. |
|
Gets or sets whether the contents of the form or the datasheet are printed when printing a form displayed in Split Form view. Read/write AcSplitFormPrinting. |
|
Gets or sets the size in twips of the form when it's displayed in Split Form view. Read/write Long. |
|
Gets or sets whether the splitter bar is available when the form is displayed in Split Form mode. Read/write Boolean. |
|
Gets or sets whether the location of the splitter bar is saved when a form that's displayed in Split Form mode is closed. Read/write Boolean. |
|
You can use the SubdatasheetExpanded property to specify or determine the saved state of all subdatasheets within a table or query. Read/write Boolean. |
|
You can use the SubdatasheetHeight property to specify or determine the default display height of a subdatasheet when expanded. Read/write Integer. |
|
Stores extra information about a form, report, section, or control needed by a Microsoft Access application. Read/write String. |
|
You can use the TimerInterval property to specify the interval, in milliseconds, between Timer events on a form. Read/write Long. |
|
Specifies a custom toolbar to display for a form. Read/write String. |
|
Specifies the table to be updateable when A form is bound to a multiple table view or stored procedure within a Microsoft Access project (.adp). |
|
Returns or sets a Boolean indicating whether the specified form uses the default printer for the system; True if the form or report uses the default printer. Read/write. |
|
Returns or sets a Byte indicating the line style to use for vertical gridlines on the specified datasheet. Read/write. |
|
Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the ViewChange event occurs. Read/write. |
|
You can use the ViewsAllowed property to specify whether users can switch between Datasheet view and Form view by clicking the Form View or Datasheet View command on the View menu or by clicking the arrow next to the View button and clicking Form View or Datasheet View. Read/write Byte. |
|
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. |
|
Returns the height of a form in twips. Read-only Integer. |
|
Returns an Integer indicating the screen position in twips of the left edge of a form relative to the left edge of the Microsoft Access window. Read-only. |
|
Returns an Integer indicating the screen position in twips of the top edge of a form relative to the top of the Microsoft Access window. Read-only. |
|
Returns the height of a form in twips. Read-only Integer. |
Events
Name |
Description |
---|---|
The Activate event occurs when a form receives the focus and becomes the active window. |
|
The AfterDelConfirm event occurs after the user confirms the deletions and the records are actually deleted or when the deletions are canceled. |
|
Occurs after all elements in the specified PivotChart view have been rendered. |
|
The AfterInsert event occurs after a new record is added. |
|
Occurs after all charts in the specfied PivotChart view have been laid out, but before they have been rendered. |
|
Occurs after the object represented by the chartObject argument has been rendered. |
|
The AfterUpdate event occurs after changed data in a control or record is updated. |
|
Occurs when a filter is applied to a form. |
|
The BeforeDelConfirm event occurs after the user deletes to the buffer one or more records, but before Microsoft Access displays a dialog box asking the user to confirm the deletions. |
|
The BeforeInsert event occurs when the user types the first character in a new record, but before the record is actually created. |
|
Occurs when the specified PivotTable view queries its data source. |
|
Occurs before any object in the specified PivotChart view has been rendered. |
|
Occurs before a ScreenTip is displayed for an element in a PivotChart view or PivotTable view. |
|
The BeforeUpdate event occurs before changed data in a control or record is updated. |
|
The Click event occurs when the user presses and then releases a mouse button over an object. |
|
The Close event occurs when a form is closed and removed from the screen. |
|
Occurs before a specified command is executed. Use this event when you want to impose certain restrictions before a particular command is executed. |
|
Occurs when the specified Microsoft Office Web Component determines whether the specified command is checked. |
|
Occurs when the specified Microsoft Office Web Component determines whether the specified command is enabled. |
|
Occurs after the specified command is executed. Use this event when you want to execute a set of commands after a particular command is executed. |
|
Occurs when the focus moves to a record, making it the current record, or when the form is refreshed or requeried. |
|
Occurs when certain properties are changed or when certain methods are executed in the specified PivotTable view. |
|
Occurs whenever the specified PivotTable view is data-bound and the data set changes — for example, when a filter operation takes place. This event also occurs when initial data is available from the data source. |
|
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 Deactivate event occurs when a form loses the focus to a Table, Query, Form, Report, Macro, or Module window, or to the Database window. |
|
Occurs when the user performs some action, such as pressing the DEL key, to delete a record, but before the record is actually deleted. |
|
The Dirty event occurs when the contents of the specified control changes. |
|
The Error event occurs when a run-time error is produced in Microsoft Access when a form has the focus. |
|
Occurs when the user opens a filter window by clicking Filter by Form, Advanced Filter/Sort, or Server Filter By 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. |
|
Occurs when a form is opened and its records are displayed. |
|
The LostFocus event occurs when the specified object loses 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. |
|
Occurs when the user rolls the mouse wheel in Form View, Split Form View, Datasheet View, Layout View, PivotChart View, or PivotTable View. |
|
Occurs when the specified PivotTable view connects to a data source. |
|
Occurs when the specified PivotTable view disconnects from a data source. |
|
The Open event occurs when a form is opened, but before the first record is displayed. |
|
Occurs whenever the specified PivotTable view field, field set, or total is added or deleted. |
|
Occurs whenever the specified PivotTable view query becomes necessary. The query may not occur immediately; it may be delayed until the new data is displayed. |
|
The Resize event occurs when a form is opened and whenever the size of a form changes. |
|
Occurs whenever the user makes a new selection in a PivotChart view or PivotTable view. |
|
The Timer event occurs for a form at regular intervals as specified by the form's TimerInterval property. |
|
Occurs when the user undoes a change. |
|
The Unload event occurs after a form is closed but before it's removed from the screen. When the form is reloaded, Microsoft Access redisplays the form and reinitializes the contents of all its controls. |
|
Occurs whenever the specified PivotChart view or PivotTable view is redrawn. |