Click to Rate and Give Feedback
MSDN
MSDN Library
Office Development
Access 2007
What's New
 New Members and Constants
New Members and Constants

New Members

The following properties, methods, and events have been added to existing objects in Microsoft Office Access 2007.

Application

PropertiesDescription
AssistanceReturns an IAssistance object that represents the Microsoft Office Help Viewer. Read-only.
MacroErrorReturns a MacroError object that contains information about the latest error to occur in a macro. Read-only.
TempVarsReturns the collection of TempVar objects. Read-only TempVars.
MethodsDescription
ColumnHistoryGets the history of values that have been stored in a Memo field.
ExportNavigationPaneSaves the current configuration of the Navigation Pane to an XML file.
HtmlEncodeConverts a string to an HTML-encoded string.
ImportNavigationPaneLoads a saved Navigation Pane configuration from disk.
LoadCustomUILoads XML markup that represents a customized Ribbon.
PlainTextStrips the rich text formatting from a string and returns an unformatted text string.

BoundObjectFrame

PropertiesDescription
BottomPaddingGets or sets the amount of space (in inches) between the object frame and its bottom gridline. Read/write Integer.
GridlineColorGets or sets the color of the gridline for the specified object frame. Read/write Long.
GridlineStyleBottomGets or sets the bottom gridline style of the specified frame. Read/write Byte.
GridlineStyleLeftGets or sets the width of the bottom gridline for the specified frame. Read/write Byte.
GridlineStyleRightGets or sets the right gridline style of the specified frame. Read/write Byte.
GridlineStyleTopGets or sets the top gridline style of the specified frame. Read/write Byte.
GridlineWidthBottomGets or sets the width of the bottom gridline for the specified frame. Read/write Byte.
GridlineWidthLeftGets or sets the width of the left gridline for the specified frame. Read/write Byte.
GridlineWidthRightGets or sets the width of the right gridline for the specified frame. Read/write Byte.
GridlineWidthTopGets or sets the width of the top gridline for the specified frame. Read/write Byte.
HorizontalAnchorGets or sets an AcHorizontalAnchor constant that indicates how the object frame is anchored horizontally within its layout. Read/write.
LayoutReturns the type of layout for the specified object frame. Read-only AcLayoutType.
LayoutIDReturns the unique identifier for the layout that contains the specified object frame. Read-only Long.
LeftPaddingGets or sets the amount of space (in inches) between the object frame and its left gridline. Read/write Integer.
RightPaddingGets or sets the amount of space (in inches) between the object frame and its right gridline. Read/write Integer.
TopPaddingGets or sets the amount of space (in inches) between the object frame and its top gridline. Read/write Integer.
VerticalAnchorGets or sets an AcVerticalAnchor constant that indicates how the specified object frame is anchored vertically within its layout. Read/write.

CheckBox

PropertiesDescription
GridlineColorGets or sets the color of the gridline for the specified check box. Read/write Long.
GridlineStyleBottomGets or sets the bottom gridline style of the specified check box. Read/write Byte.
BottomPaddingGets or sets the amount of space (in inches) between the check box and its bottom gridline. Read/write Integer.
GridlineStyleLeftGets or sets the width of the bottom gridline for the specified check box. Read/write Byte.
GridlineStyleRightGets or sets the right gridline style of the specified check box. Read/write Byte.
GridlineStyleTopGets or sets the top gridline style of the specified check box. Read/write Byte.
GridlineWidthBottomGets or sets the width of the bottom gridline for the specified check box. Read/write Byte.
GridlineWidthLeftGets or sets the width of the left gridline for the specified check box. Read/write Byte.
GridlineWidthRightGets or sets the width of the right gridline for the specified check box. Read/write Byte.
GridlineWidthTopGets or sets the width of the top gridline for the specified check box. Read/write Byte.
HorizontalAnchorGets or sets an AcHorizontalAnchor constant that indicates how the check box is anchored horizontally within its layout. Read/write.
LayoutReturns the type of layout for the specified check box. Read-only AcLayoutType.
LayoutIDReturns the unique identifier for the layout that contains the specified check box. Read-only Long.
LeftPaddingGets or sets the amount of space (in inches) between the check box and its left gridline. Read/write Integer.
RightPaddingGets or sets the amount of space (in inches) between the check box and its right gridline. Read/write Integer.
TopPaddingGets or sets the amount of space (in inches) between the check box and its top gridline. Read/write Integer.
VerticalAnchorGets or sets an AcVerticalAnchor constant that indicates how the specified check box is anchored vertically within its layout. Read/write.

CodeProject

PropertiesDescription
ImportExportSpecificationsReturns a ImportExportSpecifications collection that represents the collection of saved import or export operations for the specified object. Read-only.
IsTrustedGets whether or not macros and Visual Basic for Applications (VBA) code have been enabled in the current project. Read-only Boolean.

ComboBox

PropertiesDescription
AllowValueListEditsGets or sets whether the Edit List Items command is available when the user right-clicks a combo box. Read/write Boolean.
BottomMarginAlong with the LeftMargin, RightMargin, and TopMargin properties, specifies the location of information displayed within a text box control. Read/write Integer.
BottomPaddingGets or sets the amount of space (in inches) between the combo box and its bottom gridline. Read/write Integer.
CanGrowGets or sets whether the specified control automatically adjusts vertically to print or preview all the data the control contains. Read/write Boolean.
CanShrinkGets or sets whether the specified control automatically adjusts vertically to print or preview all the data the control contains. Read/write Boolean.
DisplayAsHyperlinkGets or sets an AcDisplayAsHyperlink constant that specifies whether to display the contents of the specified combo box as a hyperlink. Read/write.
LayoutReturns the type of layout for the specified combo box. Read-only AcLayoutType.
GridlineColorGets or sets the color of the gridline for the specified combo box. Read/write Long.
GridlineStyleBottomGets or sets the bottom gridline style of the specified combo box. Read/write Byte.
GridlineStyleLeftGets or sets the width of the bottom gridline for the specified combo box. Read/write Byte.
GridlineStyleRightGets or sets the right gridline style of the specified combo box. Read/write Byte.
GridlineStyleTopGets or sets the top gridline style of the specified combo box. Read/write Byte.
GridlineWidthBottomGets or sets the width of the bottom gridline for the specified combo box. Read/write Byte.
GridlineWidthLeftGets or sets the width of the left gridline for the specified combo box. Read/write Byte.
GridlineWidthRightGets or sets the width of the right gridline for the specified combo box. Read/write Byte.
GridlineWidthTopGets or sets the width of the top gridline for the specified combo box. Read/write Byte.
HorizontalAnchorGets or sets an AcHorizontalAnchor constant that indicates how the combo box is anchored horizontally within its layout. Read/write.
InheritValueListGets or sets whether a combo box's value list is inherited from its field. Read/write Boolean.
ItemsSelectedYou can use the ItemsSelected property to return a read-only reference to the hidden ItemsSelected collection. This hidden collection can be used to access data in the selected rows of a multiselect combo box control.
LayoutIDReturns the unique identifier for the layout that contains the specified combo box. Read-only Long.
LeftMarginAlong with the TopMargin, RightMargin, and BottomMargin properties, specifies the location of information displayed within a text box control. Read/write Integer.
LeftPaddingGets or sets the amount of space (in inches) between the combo box and its left gridline. Read/write Integer.
ListItemsEditFormGets or sets the name of the form that is displayed when the user clicks Edit List Items. Read/write String.
RightMarginAlong with the TopMargin, Left Margin, and BottomMargin properties, specifies the location of information displayed within a combo box control. Read/write Integer.
RightPaddingGets or sets the amount of space (in inches) between the combo box and its right gridline. Read/write Integer.
SelectedYou can use the Selected property in Visual Basic to determine if an item in a combo box is selected. Read/write Long.
SeparatorCharactersGets or sets the separator displayed between values when the combo box is bound to a multi-valued field. Read/write AcSeparatorCharacters.
ShowOnlyRowSourceValuesGets or sets whether the combo box can display values that aren't specified by the RowSource property. Read/write Boolean.
TopMarginAlong with the LeftMargin, RightMargin, and BottomMargin properties, specifies the location of information displayed within a text box control. Read/write Integer.
TopPaddingGets or sets the amount of space (in inches) between the combo box and its top gridline. Read/write Integer.
VerticalAnchorGets or sets an AcVerticalAnchor constant that indicates how the specified combo box is anchored vertically within its layout. Read/write.

CommandButton

PropertiesDescription
Alignment 
BackStyleYou can use the BackStyle property to specify whether a control will be transparent. Read/write Byte.
BottomPaddingGets or sets the amount of space (in inches) between the button and its bottom gridline. Read/write Integer.
CursorOnHoverGets or sets the type of mouse cursor displayed when the user rests the pointer on a button. Read/write AcCursorOnHover.
GridlineColorGets or sets the color of the gridline for the specified command button. Read/write Long.
GridlineStyleBottomGets or sets the bottom gridline style of the specified button. Read/write Byte.
GridlineStyleLeftGets or sets the width of the bottom gridline for the specified button. Read/write Byte.
GridlineStyleRightGets or sets the right gridline style of the specified button. Read/write Byte.
GridlineStyleTopGets or sets the top gridline style of the specified button. Read/write Byte.
GridlineWidthBottomGets or sets the width of the bottom gridline for the specified button. Read/write Byte.
GridlineWidthLeftGets or sets the width of the left gridline for the specified button. Read/write Byte.
GridlineWidthRightGets or sets the width of the right gridline for the specified button. Read/write Byte.
GridlineWidthTopGets or sets the width of the top gridline for the specified button. Read/write Byte.
HorizontalAnchorGets or sets an AcHorizontalAnchor constant that indicates how the button is anchored horizontally within its layout. Read/write.
LayoutReturns the type of layout for the specified button. Read-only AcLayoutType.
LayoutIDReturns the unique identifier for the layout that contains the specified button. Read-only Long.
LeftPaddingGets or sets the amount of space (in inches) between the button and its left gridline. Read/write Integer.
PictureCaptionArrangement 
RightPaddingGets or sets the amount of space (in inches) between the button and its right gridline. Read/write Integer.
TopPaddingGets or sets the amount of space (in inches) between the button and its top gridline. Read/write Integer.
VerticalAnchorGets or sets an AcVerticalAnchor constant that indicates how the specified button is anchored vertically within its layout. Read/write.

Control

PropertiesDescription
BottomPaddingGets or sets the amount of space (in inches) between the control and its bottom gridline. Read/write Integer.
GridlineColorGets or sets the color of the gridline for the specified control. Read/write Long.
GridlineStyleBottomGets or sets the bottom gridline style of the specified control. Read/write Byte.
GridlineStyleLeftGets or sets the width of the bottom gridline for the specified control. Read/write Byte.
GridlineStyleRightGets or sets the right gridline style of the specified control. Read/write Byte.
GridlineStyleTopGets or sets the top gridline style of the specified control. Read/write Byte.
GridlineWidthBottomGets or sets the width of the bottom gridline for the specified control. Read/write Byte.
GridlineWidthLeftGets or sets the width of the left gridline for the specified control. Read/write Byte.
GridlineWidthRightGets or sets the width of the right gridline for the specified control. Read/write Byte.
GridlineWidthTopGets or sets the width of the top gridline for the specified control. Read/write Byte.
HorizontalAnchorGets or sets an AcHorizontalAnchor constant that indicates how the control is anchored horizontally within its layout. Read/write.
LayoutReturns the type of layout for the specified control. Read-only AcLayoutType.
LayoutIDReturns the unique identifier for the layout that contains the specified control. Read-only Long.
LeftPaddingGets or sets the amount of space (in inches) between the control and its left gridline. Read/write Integer.
NameYou can use the Name property to determine the string expression that identifies the name of an object. Read-only String.
RightPaddingGets or sets the amount of space (in inches) between the control and its right gridline. Read/write Integer.
TopPaddingGets or sets the amount of space (in inches) between the control and its top gridline. Read/write Integer.
VerticalAnchorGets or sets an AcVerticalAnchor constant that indicates how the specified control is anchored vertically within its layout. Read/write.

CurrentProject

PropertiesDescription
ImportExportSpecificationsReturns a ImportExportSpecifications collection that represents the collection of saved import or export operations for the specified object. Read-only.
IsTrustedGets whether or not macros and Visual Basic for Applications (VBA) code have been enabled in the current project. Read-only Boolean.

DoCmd

MethodsDescription
ClearMacroErrorRemoves information about an error that is stored in the MacroError object.
CloseDatabaseCloses the current database.
LockNavigationPaneYou can use the LockNavigationPane action to prevent users from deleting database objects that are displayed in the Navigation Pane.
NavigateToYou can use the NavigateTo method to control the display of database objects in the Navigation Pane.
RunSavedImportExportRrun a saved import or export specification.
SearchForRecordYou can use the SearchForRecord method to search for a specific record in a table, query, form, or report.
SetDisplayedCategoriesSpecifies which categories are displayed under Navigate to Category in the title bar of the Navigation Pane.
SetPropertyThe SetProperty method carries out the SetProperty action in Visual Basic.
SingleStepPauses macro execution and opens the Macro Single Step dialog box.
TransferSharePointListYou can use the TransferSharePointList method to import or link data from a Microsoft Windows SharePoint Services 3.0 site.

Form

PropertiesDescription
AllowLayoutViewGets or sets whether the specified form can be used in Layout View. Read/write Boolean.
DatasheetAlternateBackColorGets or sets the color displayed on alternate rows of a form's datasheet. Read/write Long.
DisplayOnSharePointSiteGets or sets whether the specified form can be made available as a view on a Microsoft Windows SharePoint Services 3.0 site. Read/write Byte.
FilterOnLoadGets or sets whether the filter specified by the Filter property is applied when the form is loaded. Read/write Boolean.
FitToScreenGets or sets whether the width of the form is reduced to fit the width of the screen. Read/write Boolean.
NavigationCaptionGets or sets the text that appears to the left of the form's navigation buttons. Read/write String.
OrderByOnLoadGets or sets whether the sorting specified by the OrderBy property is applied when the report is loaded. Read/write Boolean.
RibbonNameGets or set the name of the customized Ribbon to be displayed when the specified form is loaded. Read/write String.
SplitFormDatasheetGets or sets whether the user can edit records in the datasheet when a form is displayed in Split Form view. Read/write AcSplitFormDatasheet.
SplitFormOrientationGets or sets the position of the datasheet relative to the form when the form is displayed in Split Form view. Read/write AcSplitFormOrientation.
SplitFormPrintingGets 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.
SplitFormSizeGets or sets the size in twips of the form when it's displayed in Split Form view. Read/write Long.
SplitFormSplitterBarGets or sets whether the splitter bar is available when the form is displayed in Split Form mode. Read/write Boolean.
SplitFormSplitterBarSaveGets 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.

Image

PropertiesDescription
BottomPaddingGets or sets the amount of space (in inches) between the image control and its bottom gridline. Read/write Integer.
GridlineColorGets or sets the color of the gridline for the specified image control. Read/write Long.
GridlineStyleBottomGets or sets the bottom gridline style of the specified image control. Read/write Byte.
GridlineStyleLeftGets or sets the width of the bottom gridline for the specified image. Read/write Byte.
GridlineStyleRightGets or sets the right gridline style of the specified image control. Read/write Byte.
GridlineStyleTopGets or sets the top gridline style of the specified image control. Read/write Byte.
GridlineWidthBottomGets or sets the width of the bottom gridline for the specified image control. Read/write Byte.
GridlineWidthLeftGets or sets the width of the left gridline for the specified image control. Read/write Byte.
GridlineWidthRightGets or sets the width of the right gridline for the specified image control. Read/write Byte.
GridlineWidthTopGets or sets the width of the top gridline for the specified image control. Read/write Byte.
HorizontalAnchorGets or sets an AcHorizontalAnchor constant that indicates how the image is anchored horizontally within its layout. Read/write.
LayoutReturns the type of layout for the specified image. Read-only AcLayoutType.
LayoutIDReturns the unique identifier for the layout that contains the specified image. Read-only Long.
LeftPaddingGets or sets the amount of space (in inches) between the image control and its left gridline. Read/write Integer.
RightPaddingGets or sets the amount of space (in inches) between the image control and its right gridline. Read/write Integer.
TabIndexYou can use the TabIndex property to specify a control's place in the tab order on a form. Read/write Integer.
TabStopYou 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.
TopPaddingGets or sets the amount of space (in inches) between the image control and its top gridline. Read/write Integer.
VerticalAnchorGets or sets an AcVerticalAnchor constant that indicates how the specified image is anchored vertically within its layout. Read/write.

Label

PropertiesDescription
BottomPaddingGets or sets the amount of space (in inches) between the label and its bottom gridline. Read/write Integer.
GridlineColorGets or sets the color of the gridline for the specified label. Read/write Long.
GridlineStyleBottomGets or sets the bottom gridline style of the specified label. Read/write Byte.
GridlineStyleLeftGets or sets the width of the bottom gridline for the specified label. Read/write Byte.
GridlineStyleRightGets or sets the right gridline style of the specified label. Read/write Byte.
GridlineStyleTopGets or sets the top gridline style of the specified label. Read/write Byte.
GridlineWidthBottomGets or sets the width of the bottom gridline for the specified label. Read/write Byte.
GridlineWidthLeftGets or sets the width of the left gridline for the specified label. Read/write Byte.
GridlineWidthRightGets or sets the width of the right gridline for the specified label. Read/write Byte.
GridlineWidthTopGets or sets the width of the top gridline for the specified label. Read/write Byte.
HorizontalAnchorGets or sets an AcHorizontalAnchor constant that indicates how the label is anchored horizontally within its layout. Read/write.
LayoutReturns the type of layout for the specified label. Read-only AcLayoutType.
LayoutIDReturns the unique identifier for the layout that contains the specified label. Read-only Long.
LeftPaddingGets or sets the amount of space (in inches) between the label and its left gridline. Read/write Integer.
RightPaddingGets or sets the amount of space (in inches) between the label and its right gridline. Read/write Integer.
TopPaddingGets or sets the amount of space (in inches) between the label and its top gridline. Read/write Integer.
VerticalAnchorGets or sets an AcVerticalAnchor constant that indicates how the specified label is anchored vertically within its layout. Read/write.

Line

PropertiesDescription
HorizontalAnchorGets or sets an AcHorizontalAnchor constant that indicates how the line is anchored horizontally within its layout. Read/write.
VerticalAnchorGets or sets an AcVerticalAnchor constant that indicates how the specified line is anchored vertically within its layout. Read/write.

ListBox

PropertiesDescription
GridlineWidthLeftGets or sets the width of the left gridline for the specified list box. Read/write Byte.
GridlineWidthRightGets or sets the width of the right gridline for the specified list box. Read/write Byte.
AllowValueListEditsGets or sets whether the Edit List Items command is available when the user right-clicks a list box. Read/write Boolean.
BottomPaddingGets or sets the amount of space (in inches) between the list box and its bottom gridline. Read/write Integer.
GridlineColorGets or sets the color of the gridline for the specified list box. Read/write Long.
GridlineStyleBottomGets or sets the bottom gridline style of the specified list box. Read/write Byte.
GridlineStyleLeftGets or sets the width of the bottom gridline for the specified list box. Read/write Byte.
GridlineStyleRightGets or sets the right gridline style of the specified list box. Read/write Byte.
GridlineStyleTopGets or sets the top gridline style of the specified list box. Read/write Byte.
GridlineWidthBottomGets or sets the width of the bottom gridline for the specified list box. Read/write Byte.
GridlineWidthTopGets or sets the width of the top gridline for the specified list box. Read/write Byte.
HorizontalAnchorGets or sets an AcHorizontalAnchor constant that indicates how the list box is anchored horizontally within its layout. Read/write.
InheritValueListGets or sets whether a list box's value list is inherited from its field. Read/write Boolean.
LayoutReturns the type of layout for the specified list box. Read-only AcLayoutType.
LayoutIDReturns the unique identifier for the layout that contains the specified list box. Read-only Long.
LeftPaddingGets or sets the amount of space (in inches) between the list box and its left gridline. Read/write Integer.
ListItemsEditFormGets or sets the name of the form that is displayed when the user clicks Edit List Items. Read/write String.
RightPaddingGets or sets the amount of space (in inches) between the list box and its right gridline. Read/write Integer.
ShowOnlyRowSourceValuesGets or sets whether the list box can display values that aren't specified by the RowSource property. Read/write Boolean.
TopPaddingGets or sets the amount of space (in inches) between the list box and its top gridline. Read/write Integer.
VerticalAnchorGets or sets an AcVerticalAnchor constant that indicates how the specified list box is anchored vertically within its layout. Read/write.

ObjectFrame

PropertiesDescription
BottomPaddingGets or sets the amount of space (in inches) between the object frame and its bottom gridline. Read/write Integer.
GridlineStyleRightGets or sets the right gridline style of the specified frame. Read/write Byte.
GridlineColorGets or sets the color of the gridline for the specified object frame. Read/write Long.
GridlineStyleBottomGets or sets the bottom gridline style of the specified frame. Read/write Byte.
GridlineStyleLeftGets or sets the width of the bottom gridline for the specified frame. Read/write Byte.
GridlineStyleTopGets or sets the top gridline style of the specified frame. Read/write Byte.
GridlineWidthBottomGets or sets the width of the bottom gridline for the specified frame. Read/write Byte.
GridlineWidthLeftGets or sets the width of the left gridline for the specified frame. Read/write Byte.
GridlineWidthRightGets or sets the width of the right gridline for the specified frame. Read/write Byte.
GridlineWidthTopGets or sets the width of the top gridline for the specified frame. Read/write Byte.
HorizontalAnchorGets or sets an AcHorizontalAnchor constant that indicates how the object frame is anchored horizontally within its layout. Read/write.
LayoutReturns the type of layout for the spec