Share via


Form Object Members

Access Developer Reference

A Form object refers to a particular Microsoft Access form.

Methods

  Name Description
Bb257384.methods(en-us,office.12).gif GoToPage The GoToPage method moves the focus to the first control on a specified page in the active form.
Bb257384.methods(en-us,office.12).gif Move Moves the specified object to the coordinates specified by the argument values.
Bb257384.methods(en-us,office.12).gif Recalc The Recalc method immediately updates all calculated controls on a form.
Bb257384.methods(en-us,office.12).gif Refresh 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.
Bb257384.methods(en-us,office.12).gif Repaint 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.
Bb257384.methods(en-us,office.12).gif Requery The Requery method updates the data underlying a specified form by requerying the source of data for the form.
Bb257384.methods(en-us,office.12).gif SetFocus 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.
Bb257384.methods(en-us,office.12).gif Undo You can use the Undo method to reset a control or form when its value has been changed.

Properties

  Name Description
Bb257384.properties(en-us,office.12).gif ActiveControl 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.
Bb257384.properties(en-us,office.12).gif AfterDelConfirm Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the AfterDelConfirm event occurs. Read/write.
Bb257384.properties(en-us,office.12).gif AfterFinalRender Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the AfterFinalRender event occurs. Read/write.
Bb257384.properties(en-us,office.12).gif AfterInsert Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the AfterInsert event occurs. Read/write.
Bb257384.properties(en-us,office.12).gif AfterLayout Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the AfterLayout event occurs. Read/write.
Bb257384.properties(en-us,office.12).gif AfterRender Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the AfterFinalRender event occurs. Read/write.
Bb257384.properties(en-us,office.12).gif AfterUpdate Returns or sets which macro, event procedure, or user-defined function runs when the AfterUpdate event occurs. Read/write String.
Bb257384.properties(en-us,office.12).gif AllowAdditions You can use the AllowAdditions property to specify whether a user can add a record when using a form. Read/write Boolean.
Bb257384.properties(en-us,office.12).gif AllowDatasheetView Returns or sets a Boolean indicating whether the specified form may be viewed in Datasheet View. True if Datasheet View is allowed. Read/write.
Bb257384.properties(en-us,office.12).gif AllowDeletions You can use the AllowDeletions property to specify whether a user can delete a record when using a form. Read/write Boolean.
Bb257384.properties(en-us,office.12).gif AllowEdits You can use the AllowEdits property to specify whether a user can edit saved records when using a form. Read/write Boolean.
Bb257384.properties(en-us,office.12).gif AllowFilters You can use the AllowFilters property to specify whether records in a form can be filtered. Read/write Boolean.
Bb257384.properties(en-us,office.12).gif AllowFormView Returns or sets a Boolean indicating whether the specified form may be viewed in Form View. True if Form View is allowed. Read/write.
Bb257384.properties(en-us,office.12).gif AllowLayoutView Gets or sets whether the specified form can be used in Layout View. Read/write Boolean.
Bb257384.properties(en-us,office.12).gif AllowPivotChartView Returns or sets a Boolean indicating whether the specified form may be viewed in PivotChart View. True if PivotChart View is allowed. Read/write.
Bb257384.properties(en-us,office.12).gif AllowPivotTableView Returns or sets a Boolean indicating whether the specified form may be viewed in PivotTable View. True if PivotTable View is allowed. Read/write.
Bb257384.properties(en-us,office.12).gif Application You can use the Application property to access the active Microsoft Access Application object and its related properties. Read-only Application object.
Bb257384.properties(en-us,office.12).gif AutoCenter Returns or sets a Boolean indicating whether a form will be centered automatically in the application window when the form is opened. Read/write.
Bb257384.properties(en-us,office.12).gif AutoResize Returns or sets a Boolean indicating whether a Form window opens automatically sized to display complete records. Read/write.
Bb257384.properties(en-us,office.12).gif BeforeDelConfirm Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the BeforeDelConfirm event occurs. Read/write.
Bb257384.properties(en-us,office.12).gif BeforeInsert Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the BeforeInsert event occurs. Read/write.
Bb257384.properties(en-us,office.12).gif BeforeQuery Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the BeforeQuery event occurs. Read/write.
Bb257384.properties(en-us,office.12).gif BeforeRender Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the BeforeRender event occurs. Read/write.
Bb257384.properties(en-us,office.12).gif BeforeScreenTip Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the BeforeScreenTip event occurs. Read/write.
Bb257384.properties(en-us,office.12).gif BeforeUpdate Returns or sets which macro, event procedure, or user-defined function runs when the BeforeUpdate event occurs. Read/write String.
Bb257384.properties(en-us,office.12).gif Bookmark 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.
Bb257384.properties(en-us,office.12).gif BorderStyle 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.
Bb257384.properties(en-us,office.12).gif Caption Gets or sets the text that appears in the title bar in Form view. Read/write String.
Bb257384.properties(en-us,office.12).gif ChartSpace Returns a ChartSpace object. Read-only.
Bb257384.properties(en-us,office.12).gif CloseButton Specifies whether the Close button on a form is enabled. Read/write Boolean.
Bb257384.properties(en-us,office.12).gif CommandBeforeExecute Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the CommandBeforeExecute event occurs. Read/write.
Bb257384.properties(en-us,office.12).gif CommandChecked Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the CommandChecked event occurs. Read/write.
Bb257384.properties(en-us,office.12).gif CommandEnabled Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the CommandEnabled event occurs. Read/write.
Bb257384.properties(en-us,office.12).gif CommandExecute Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the CommandExecute event occurs. Read/write.
Bb257384.properties(en-us,office.12).gif ControlBox Specifies whether a form has a Control menu in Form view and Datasheet view. Read/write Boolean.
Bb257384.properties(en-us,office.12).gif Controls Returns the Controls collection of a form, subform, report or section. Read-only Controls.
Bb257384.properties(en-us,office.12).gif Count You can use the Count property to determine the number of items in a specified collection. Read-only Integer
Bb257384.properties(en-us,office.12).gif CurrentRecord You can use the CurrentRecord property to identify the current record in the recordset being viewed on a form. Read/write Long.
Bb257384.properties(en-us,office.12).gif CurrentSectionLeft 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.
Bb257384.properties(en-us,office.12).gif CurrentSectionTop 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.
Bb257384.properties(en-us,office.12).gif CurrentView You can use the CurrentView property to determine how a form is currently displayed. Read/write Integer.
Bb257384.properties(en-us,office.12).gif Cycle 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.
Bb257384.properties(en-us,office.12).gif DataChange Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the DataChange event occurs. Read/write.
Bb257384.properties(en-us,office.12).gif DataEntry 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.
Bb257384.properties(en-us,office.12).gif DataSetChange Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the DataSetChange event occurs. Read/write.
Bb257384.properties(en-us,office.12).gif DatasheetAlternateBackColor Gets or sets the color displayed on alternate rows of a form's datasheet. Read/write Long.
Bb257384.properties(en-us,office.12).gif DatasheetBackColor 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.
Bb257384.properties(en-us,office.12).gif DatasheetBorderLineStyle Returns or sets a Byte indicating the line style to use for the border of the specified datasheet. Read/write.
Bb257384.properties(en-us,office.12).gif DatasheetCellsEffect You can use the DatasheetCellsEffect property to specify whether special effects are applied to cells in a datasheet. Read/write Byte.
Bb257384.properties(en-us,office.12).gif DatasheetColumnHeaderUnderlineStyle 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.
Bb257384.properties(en-us,office.12).gif DatasheetFontHeight 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.
Bb257384.properties(en-us,office.12).gif DatasheetFontItalic You can use the DatasheetFontItalic property to specify an italicized appearance for field names and data in Datasheet view. Read/write Boolean.
Bb257384.properties(en-us,office.12).gif DatasheetFontName 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.
Bb257384.properties(en-us,office.12).gif DatasheetFontUnderline You can use the DatasheetFontUnderline property to specify an underlined appearance for field names and data in Datasheet view. Read/write Boolean.
Bb257384.properties(en-us,office.12).gif DatasheetFontWeight 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.
Bb257384.properties(en-us,office.12).gif DatasheetForeColor 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.
Bb257384.properties(en-us,office.12).gif DatasheetGridlinesBehavior You can use the DatasheetGridlinesBehavior property to specify which gridlines will appear in Datasheet view. Read/write Byte.
Bb257384.properties(en-us,office.12).gif DatasheetGridlinesColor You can use the DatasheetGridlinesColor property to specify the color of gridlines in a datasheet. Read/write Long.
Bb257384.properties(en-us,office.12).gif DefaultControl 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.
Bb257384.properties(en-us,office.12).gif DefaultView You can use the DefaultView property to specify the opening view of a form. Read/write Byte.
Bb257384.properties(en-us,office.12).gif Dirty You can use the Dirty property to determine whether the current record has been modified since it was last saved. Read/write Boolean.
Bb257384.properties(en-us,office.12).gif DisplayOnSharePointSite Gets or sets whether the specified form can be made available as a view on a 1st_WSS_3 site. Read/write Byte.
Bb257384.properties(en-us,office.12).gif DividingLines 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.
Bb257384.properties(en-us,office.12).gif FastLaserPrinting 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.
Bb257384.properties(en-us,office.12).gif FetchDefaults 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.
Bb257384.properties(en-us,office.12).gif Filter 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.
Bb257384.properties(en-us,office.12).gif FilterOn You can use the FilterOn property to specify or determine whether the Filter property for a form or report is applied. Read/write Boolean.
Bb257384.properties(en-us,office.12).gif FilterOnLoad Gets or sets whether the filter specified by the Filter property is applied when the form is loaded. Read/write Boolean.
Bb257384.properties(en-us,office.12).gif FitToScreen Gets or sets whether the width of the form is reduced to fit the width of the screen. Read/write Boolean.
Bb257384.properties(en-us,office.12).gif Form You can use the Form property to refer to a form or to refer to the form associated with a subform control. Read-only Form.
Bb257384.properties(en-us,office.12).gif FrozenColumns You can use the FrozenColumns property to determine how many columns in a datasheet are frozen. Read/write Integer
Bb257384.properties(en-us,office.12).gif GridX 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.
Bb257384.properties(en-us,office.12).gif GridY 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.
Bb257384.properties(en-us,office.12).gif HasModule You can use the HasModule property to specify or determine whether a form or report has a class module. Read/write Boolean.
Bb257384.properties(en-us,office.12).gif HelpContextId The HelpContextID property specifies the context ID of a topic in the custom Help file specified by the HelpFile property setting. Read/write Long.
Bb257384.properties(en-us,office.12).gif HelpFile The name of a help file associated with a form. Read/write String.
Bb257384.properties(en-us,office.12).gif HorizontalDatasheetGridlineStyle Returns or sets a Byte indicating the line style to use for horizontal gridlines on the specified datasheet. Read/write.
Bb257384.properties(en-us,office.12).gif Hwnd 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.
Bb257384.properties(en-us,office.12).gif InputParameters 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.
Bb257384.properties(en-us,office.12).gif InsideHeight 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.
Bb257384.properties(en-us,office.12).gif InsideWidth 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.
Bb257384.properties(en-us,office.12).gif KeyPreview 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.
Bb257384.properties(en-us,office.12).gif LayoutForPrint You can use the LayoutForPrint property to specify whether the form uses printer or screen fonts. Read/write Boolean.
Bb257384.properties(en-us,office.12).gif MaxRecButton 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.
Bb257384.properties(en-us,office.12).gif MaxRecords Specifies the maximum number of records by a query or view. Read/write Long.
Bb257384.properties(en-us,office.12).gif MenuBar Specifies a custom menu to display for a form. Read/write String.
Bb257384.properties(en-us,office.12).gif MinMaxButtons You can use the MinMaxButtons property to specify whether the Maximize and Minimize buttons will be visible on a form. Read/write Byte.
Bb257384.properties(en-us,office.12).gif Modal 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.
Bb257384.properties(en-us,office.12).gif Module You can use the Module property to specify a form module. Read-only Module object.
Bb257384.properties(en-us,office.12).gif MouseWheel Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the MouseWheel event occurs. Read/write.
Bb257384.properties(en-us,office.12).gif Moveable Returns or sets a Boolean indicating whether the specified form can be moved by the user; True if it can be moved. Read/write.
Bb257384.properties(en-us,office.12).gif Name You can use the Name property to specify or determine the string expression that identifies the name of an object. Read/write String.
Bb257384.properties(en-us,office.12).gif NavigationButtons You can use the NavigationButtons property to specify whether navigation buttons and a record number box are displayed on a form. Read/write Boolean.
Bb257384.properties(en-us,office.12).gif NavigationCaption Gets or sets the text that appears to the left of the form's navigation buttons. Read/write String.
Bb257384.properties(en-us,office.12).gif NewRecord You can use the NewRecord property to determine whether the current record is a new record. Read-only Integer.
Bb257384.properties(en-us,office.12).gif OnActivate Sets or returns the value of the On Activate box in the Properties window of a form or report. Read/write String.
Bb257384.properties(en-us,office.12).gif OnApplyFilter Sets or returns the value of the On Apply Filter box in the Properties window of a form. Read/write String.
Bb257384.properties(en-us,office.12).gif OnClick Sets or returns the value of the On Click box in the Properties window. Read/write String.
Bb257384.properties(en-us,office.12).gif OnClose Sets or returns the value of the On Close box in the Properties window of a form or report. Read/write String.
Bb257384.properties(en-us,office.12).gif OnConnect Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the OnConnect event occurs. Read/write.
Bb257384.properties(en-us,office.12).gif OnCurrent Sets or returns the value of the On Current box in the Properties window of a form. Read/write String.
Bb257384.properties(en-us,office.12).gif OnDblClick Sets or returns the value of the On Dbl Click box in the Properties window. Read/write String.
Bb257384.properties(en-us,office.12).gif OnDeactivate Sets or returns the value of the On Deactivate box in the Properties window of a form or report. Read/write String.
Bb257384.properties(en-us,office.12).gif OnDelete Sets or returns the value of the On Delete box in the Properties window of a form. Read/write String.
Bb257384.properties(en-us,office.12).gif OnDirty Sets or returns the value of the On Dirty box in the Properties window of a form or report. Read/write String.
Bb257384.properties(en-us,office.12).gif OnDisconnect Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the OnDisconnect event occurs. Read/write.
Bb257384.properties(en-us,office.12).gif OnError Sets or returns the value of the OnError box in the Properties window of a form or report. Read/write String.
Bb257384.properties(en-us,office.12).gif OnFilter Sets or returns the value of the On Filter box in the Properties window of a form. Read/write String.
Bb257384.properties(en-us,office.12).gif OnGotFocus Sets or returns the value of the On Got Focus box in the Properties window of the specified object. Read/write String.
Bb257384.properties(en-us,office.12).gif OnInsert Sets or returns the value of the Before Insert box in the Properties window of a form. Read/write String.
Bb257384.properties(en-us,office.12).gif OnKeyDown Sets or returns the value of the On Key Down box in the Properties window. Read/write String.
Bb257384.properties(en-us,office.12).gif OnKeyPress Sets or returns the value of the On Key Press box in the Properties window. Read/write String.
Bb257384.properties(en-us,office.12).gif OnKeyUp Sets or returns the value of the On Key Up box in the Properties window. Read/write String.
Bb257384.properties(en-us,office.12).gif OnLoad Sets or returns the value of the On Load box in the Properties window of a form. Read/write String.
Bb257384.properties(en-us,office.12).gif OnLostFocus Sets or returns the value of the On Lost Focus box in the Properties window of the specified object. Read/write String.
Bb257384.properties(en-us,office.12).gif OnMenu Sets or returns the value of the On Menu box in the Properties window of a form or report. Read/write String.
Bb257384.properties(en-us,office.12).gif OnMouseDown Sets or returns the value of the On Mouse Down box in the Properties window. Read/write String.
Bb257384.properties(en-us,office.12).gif OnMouseMove Sets or returns the value of the On Mouse Move box in the Properties window. Read/write String.
Bb257384.properties(en-us,office.12).gif OnMouseUp Sets or returns the value of the On Mouse Up box in the Properties window. Read/write String.
Bb257384.properties(en-us,office.12).gif OnOpen Sets or returns the value of the On Open box in the Properties window of a form or report. Read/write String.
Bb257384.properties(en-us,office.12).gif OnResize Sets or returns the value of the On Resize box in the Properties window of a form. Read/write String.
Bb257384.properties(en-us,office.12).gif OnTimer Sets or returns the value of the On Timer box in the Properties window of a form. Read/write String.
Bb257384.properties(en-us,office.12).gif OnUndo Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the Undo event occurs. Read/write..
Bb257384.properties(en-us,office.12).gif OnUnload Sets or returns the value of the On Unload box in the Properties window of a form. Read/write String.
Bb257384.properties(en-us,office.12).gif OpenArgs Determines the string expression specified by the OpenArgs argument of the OpenForm method that opened a form. Read/write Variant.
Bb257384.properties(en-us,office.12).gif OrderBy You can use the OrderBy property to specify how you want to sort records in a form. Read/write String.
Bb257384.properties(en-us,office.12).gif OrderByOn You can use the OrderByOn property to specify whether an object's OrderBy property setting is applied. Read/write Boolean.
Bb257384.properties(en-us,office.12).gif OrderByOnLoad Gets or sets whether the sorting specified by the OrderBy property is applied when the report is loaded. Read/write Boolean.
Bb257384.properties(en-us,office.12).gif Orientation You can use the Orientation property to specify or determine the view orientation. Read/write Byte.
Bb257384.properties(en-us,office.12).gif Page The Page property specifies the current page number when a form is being printed. Read/write Long.
Bb257384.properties(en-us,office.12).gif Pages You can use the Pages property to return information needed to print page numbers in a form. Read/write Integer.
Bb257384.properties(en-us,office.12).gif Painting You can use the Painting property to specify whether a form is repainted. Read/write Boolean.
Bb257384.properties(en-us,office.12).gif PaintPalette You can use the PaintPalette property to specify a palette to be used by a form. Read/write Variant.
Bb257384.properties(en-us,office.12).gif PaletteSource You can use the PaletteSource property to specify the palette for a form. Read/write String.
Bb257384.properties(en-us,office.12).gif Parent Returns the parent object for the specified object. Read-only.
Bb257384.properties(en-us,office.12).gif Picture 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.
Bb257384.properties(en-us,office.12).gif PictureAlignment 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
Bb257384.properties(en-us,office.12).gif PictureData You can use the PictureData property to copy the picture to another object that supports the Picture property. Read/write Variant.
Bb257384.properties(en-us,office.12).gif PicturePalette You can use the PicturePalette property to specify a palette to be used by a form. Read/write Variant.
Bb257384.properties(en-us,office.12).gif PictureSizeMode You can use the PictureSizeMode property to specify how a picture for a form or report is sized. Read/write Byte.
Bb257384.properties(en-us,office.12).gif PictureTiling 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.
Bb257384.properties(en-us,office.12).gif PictureType 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.
Bb257384.properties(en-us,office.12).gif PivotTable Returns a PivotTable object representing a PivotTable View on a form. Read-only.
Bb257384.properties(en-us,office.12).gif PivotTableChange Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the PivotTableChange event occurs. Read/write.
Bb257384.properties(en-us,office.12).gif PopUp Specifies whether a form opens as a pop-up window. Read/write Boolean.
Bb257384.properties(en-us,office.12).gif Printer Returns or sets a Printer object representing the default printer on the current system. Read/write.
Bb257384.properties(en-us,office.12).gif Properties Returns a reference to a control's Properties collection object. Read-only.
Bb257384.properties(en-us,office.12).gif PrtDevMode 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.
Bb257384.properties(en-us,office.12).gif PrtDevNames 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.
Bb257384.properties(en-us,office.12).gif PrtMip Read/write
Bb257384.properties(en-us,office.12).gif Query Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the Query event occurs. Read/write.
Bb257384.properties(en-us,office.12).gif RecordLocks 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.
Bb257384.properties(en-us,office.12).gif RecordSelectors You can use the RecordSelectors property to specify whether a form displays record selectors in Form view. Read/write Boolean.
Bb257384.properties(en-us,office.12).gif Recordset Returns or sets the ADO Recordset or DAO Recordset object representing the record source for the specified object. Read/write Object.
Bb257384.properties(en-us,office.12).gif RecordsetClone You can use the RecordsetClone property to refer to a form's Recordset object specified by the form's RecordSource property. Read-only.
Bb257384.properties(en-us,office.12).gif RecordsetType You can use the RecordsetType property to specify what kind of recordset is made available to a form. Read/write Byte.
Bb257384.properties(en-us,office.12).gif RecordSource You can use the RecordSource property to specify the source of the data for a form. Read/write String.
Bb257384.properties(en-us,office.12).gif RecordSourceQualifier Returns or sets a String indicating the SQL Server owner name of the record source for the specified form. Read/write.
Bb257384.properties(en-us,office.12).gif ResyncCommand 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.
Bb257384.properties(en-us,office.12).gif RibbonName Gets or set the name of the customized Ribbon to be displayed when the specified form is loaded. Read/write String.
Bb257384.properties(en-us,office.12).gif RowHeight You can use the RowHeight property to specify the height of all rows in Datasheet view. Read/write Integer.
Bb257384.properties(en-us,office.12).gif ScrollBars You can use the ScrollBars property to specify whether scroll bars appear on a form. Read/write Byte.
Bb257384.properties(en-us,office.12).gif Section 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.
Bb257384.properties(en-us,office.12).gif SelectionChange Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the SelectionChange event occurs. Read/write.
Bb257384.properties(en-us,office.12).gif SelHeight 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.
Bb257384.properties(en-us,office.12).gif SelLeft You can use the SelLeft property to specify or determine which column (field) is leftmost in the current selection rectangle. Read/write Long.
Bb257384.properties(en-us,office.12).gif SelTop 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.
Bb257384.properties(en-us,office.12).gif SelWidth You can use the SelWidth property to specify or determine the number of selected columns (fields) in the current selection rectangle. Read/write Long.
Bb257384.properties(en-us,office.12).gif ServerFilter 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.
Bb257384.properties(en-us,office.12).gif ServerFilterByForm 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.
Bb257384.properties(en-us,office.12).gif ShortcutMenu 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.
Bb257384.properties(en-us,office.12).gif ShortcutMenuBar 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.
Bb257384.properties(en-us,office.12).gif SplitFormDatasheet Gets or sets whether the user can edit records in the datasheet when a form is displayed in Split Form view. Read/write AcSplitFormDatasheet.
Bb257384.properties(en-us,office.12).gif SplitFormOrientation Gets or sets the position of the datasheet relative to the form when the form is displayed in Split Form view. Read/write AcSplitFormOrientation.
Bb257384.properties(en-us,office.12).gif SplitFormPrinting 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.
Bb257384.properties(en-us,office.12).gif SplitFormSize Gets or sets the size in twips of the form when it's displayed in Split Form view. Read/write Long.
Bb257384.properties(en-us,office.12).gif SplitFormSplitterBar Gets or sets whether the splitter bar is available when the form is displayed in Split Form mode. Read/write Boolean.
Bb257384.properties(en-us,office.12).gif SplitFormSplitterBarSave 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.
Bb257384.properties(en-us,office.12).gif SubdatasheetExpanded You can use the SubdatasheetExpanded property to specify or determine the saved state of all subdatasheets within a table or query. Read/write Boolean.
Bb257384.properties(en-us,office.12).gif SubdatasheetHeight You can use the SubdatasheetHeight property to specify or determine the default display height of a subdatasheet when expanded. Read/write Integer.
Bb257384.properties(en-us,office.12).gif Tag Stores extra information about a form, report, section, or control needed by a Microsoft Access application. Read/write String.
Bb257384.properties(en-us,office.12).gif TimerInterval You can use the TimerInterval property to specify the interval, in milliseconds, between Timer events on a form. Read/write Long.
Bb257384.properties(en-us,office.12).gif Toolbar Specifies a custom toolbar to display for a form. Read/write String.
Bb257384.properties(en-us,office.12).gif UniqueTable 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).
Bb257384.properties(en-us,office.12).gif UseDefaultPrinter 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.
Bb257384.properties(en-us,office.12).gif VerticalDatasheetGridlineStyle Returns or sets a Byte indicating the line style to use for vertical gridlines on the specified datasheet. Read/write.
Bb257384.properties(en-us,office.12).gif ViewChange Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the ViewChange event occurs. Read/write.
Bb257384.properties(en-us,office.12).gif ViewsAllowed 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.
Bb257384.properties(en-us,office.12).gif Visible Returns or sets whether the object is visible. Read/write Boolean.
Bb257384.properties(en-us,office.12).gif Width Gets or sets the width of the specified object in twips. Read/write Integer.
Bb257384.properties(en-us,office.12).gif WindowHeight Returns the height of a form in twips. Read-only Integer.
Bb257384.properties(en-us,office.12).gif WindowLeft 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.
Bb257384.properties(en-us,office.12).gif WindowTop 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.
Bb257384.properties(en-us,office.12).gif WindowWidth Returns the height of a form in twips. Read-only Integer.

Events

  Name Description
Bb257384.events(en-us,office.12).gif Activate The Activate event occurs when a form receives the focus and becomes the active window.
Bb257384.events(en-us,office.12).gif AfterDelConfirm The AfterDelConfirm event occurs after the user confirms the deletions and the records are actually deleted or when the deletions are canceled.
Bb257384.events(en-us,office.12).gif AfterFinalRender Occurs after all elements in the specified PivotChart view have been rendered.
Bb257384.events(en-us,office.12).gif AfterInsert The AfterInsert event occurs after a new record is added.
Bb257384.events(en-us,office.12).gif AfterLayout Occurs after all charts in the specfied PivotChart view have been laid out, but before they have been rendered.
Bb257384.events(en-us,office.12).gif AfterRender Occurs after the object represented by the chartObject argument has been rendered.
Bb257384.events(en-us,office.12).gif AfterUpdate The AfterUpdate event occurs after changed data in a control or record is updated.
Bb257384.events(en-us,office.12).gif ApplyFilter Occurs when a filter is applied to a form.
Bb257384.events(en-us,office.12).gif BeforeDelConfirm 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.
Bb257384.events(en-us,office.12).gif BeforeInsert The BeforeInsert event occurs when the user types the first character in a new record, but before the record is actually created.
Bb257384.events(en-us,office.12).gif BeforeQuery Occurs when the specified PivotTable view queries its data source.
Bb257384.events(en-us,office.12).gif BeforeRender Occurs before any object in the specified PivotChart view has been rendered.
Bb257384.events(en-us,office.12).gif BeforeScreenTip Occurs before a ScreenTip is displayed for an element in a PivotChart view or PivotTable view.
Bb257384.events(en-us,office.12).gif BeforeUpdate The BeforeUpdate event occurs before changed data in a control or record is updated.
Bb257384.events(en-us,office.12).gif Click The Click event occurs when the user presses and then releases a mouse button over an object.
Bb257384.events(en-us,office.12).gif Close The Close event occurs when a form is closed and removed from the screen.
Bb257384.events(en-us,office.12).gif CommandBeforeExecute Occurs before a specified command is executed. Use this event when you want to impose certain restrictions before a particular command is executed.
Bb257384.events(en-us,office.12).gif CommandChecked Occurs when the specified Microsoft Office Web Component determines whether the specified command is checked.
Bb257384.events(en-us,office.12).gif CommandEnabled Occurs when the specified Microsoft Office Web Component determines whether the specified command is enabled.
Bb257384.events(en-us,office.12).gif CommandExecute 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.
Bb257384.events(en-us,office.12).gif Current Occurs when the focus moves to a record, making it the current record, or when the form is refreshed or requeried.
Bb257384.events(en-us,office.12).gif DataChange Occurs when certain properties are changed or when certain methods are executed in the specified PivotTable view.
Bb257384.events(en-us,office.12).gif DataSetChange 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.
Bb257384.events(en-us,office.12).gif DblClick 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.
Bb257384.events(en-us,office.12).gif Deactivate 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.
Bb257384.events(en-us,office.12).gif Delete Occurs when the user performs some action, such as pressing the DEL key, to delete a record, but before the record is actually deleted.
Bb257384.events(en-us,office.12).gif Dirty The Dirty event occurs when the contents of the specified control changes.
Bb257384.events(en-us,office.12).gif Error The Error event occurs when a run-time error is produced in Microsoft Access when a form has the focus.
Bb257384.events(en-us,office.12).gif Filter Occurs when the user opens a filter window by clicking Filter by Form, Advanced Filter/Sort, or Server Filter By Form.
Bb257384.events(en-us,office.12).gif GotFocus The GotFocus event occurs when the specified object receives the focus.
Bb257384.events(en-us,office.12).gif KeyDown 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.
Bb257384.events(en-us,office.12).gif KeyPress 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.
Bb257384.events(en-us,office.12).gif KeyUp 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.
Bb257384.events(en-us,office.12).gif Load Occurs when a form is opened and its records are displayed.
Bb257384.events(en-us,office.12).gif LostFocus The LostFocus event occurs when the specified object loses the focus.
Bb257384.events(en-us,office.12).gif MouseDown The MouseDown event occurs when the user presses a mouse button.
Bb257384.events(en-us,office.12).gif MouseMove The MouseMove event occurs when the user moves the mouse.
Bb257384.events(en-us,office.12).gif MouseUp The MouseUp event occurs when the user releases a mouse button.
Bb257384.events(en-us,office.12).gif MouseWheel Occurs when the user rolls the mouse wheel in Form View, Split Form View, Datasheet View, Layout View, PivotChart View, or PivotTable View.
Bb257384.events(en-us,office.12).gif OnConnect Occurs when the specified PivotTable view connects to a data source.
Bb257384.events(en-us,office.12).gif OnDisconnect Occurs when the specified PivotTable view disconnects from a data source.
Bb257384.events(en-us,office.12).gif Open The Open event occurs when a form is opened, but before the first record is displayed.
Bb257384.events(en-us,office.12).gif PivotTableChange Occurs whenever the specified PivotTable view field, field set, or total is added or deleted.
Bb257384.events(en-us,office.12).gif Query 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.
Bb257384.events(en-us,office.12).gif Resize The Resize event occurs when a form is opened and whenever the size of a form changes.
Bb257384.events(en-us,office.12).gif SelectionChange Occurs whenever the user makes a new selection in a PivotChart view or PivotTable view.
Bb257384.events(en-us,office.12).gif Timer The Timer event occurs for a form at regular intervals as specified by the form's TimerInterval property.
Bb257384.events(en-us,office.12).gif Undo Occurs when the user undoes a change.
Bb257384.events(en-us,office.12).gif Unload 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.
Bb257384.events(en-us,office.12).gif ViewChange Occurs whenever the specified PivotChart view or PivotTable view is redrawn.