RunCommand Method Constants

RunCommand Method Constants

See Also

You can use these constants in Visual Basic when you use the RunCommand method. Using these constants with the RunCommand method is the same as supplying the value for the RunCommand action in a macro.

NotesThe acCmdDebugWindow constant will run the Immediate Window menu command.

Constants listed below with asterisks (* or **) have some specific restriction about when they can be used with the RunCommand method.

Constants shown in italic are included for backwards compatibility only.

acCmdAboutMicrosoftAccess acCmdGoContinue acCmdRename
acCmdAddWatch acCmdGoForward acCmdRenameColumn
acCmdAdvancedFilterSort acCmdHideColumns acCmdRepairDatabase
acCmdAlignBottom acCmdHidePane acCmdReplace**
acCmdAlignLeft acCmdHideTable acCmdReportHdrFtr
acCmdAlignRight acCmdHorizontalSpacingDecrease acCmdReset
acCmdAlignToGrid acCmdHorizontalSpacingIncrease acCmdResolveConflicts
acCmdAlignTop acCmdHorizontalSpacingMakeEqual acCmdRowHeight
acCmdAlignToShortest acCmdHyperlinkDisplayText acCmdRun
acCmdAlignToTallest acCmdImport acCmdRunMacro
acCmdAnalyzePerformance acCmdIndent acCmdRunOpenMacro
acCmdAnalyzeTable acCmdIndexes acCmdSave**
acCmdAnswerWizard acCmdInsertActiveXControl acCmdSaveAllModules
acCmdApplyDefault acCmdInsertChart acCmdSaveAs**
acCmdApplyFilterSort acCmdInsertFile acCmdSaveAsASP
acCmdAppMaximize acCmdInsertFileIntoModule acCmdSaveAsHTML
acCmdAppMinimize acCmdInsertHyperlink acCmdSaveAsIDC
acCmdAppMove acCmdInsertLookupColumn acCmdSaveAsQuery
acCmdAppRestore acCmdInsertLookupField acCmdSaveAsReport
acCmdAppSize acCmdInsertObject acCmdSaveLayout
acCmdArrangeIconsAuto acCmdInsertPage acCmdSaveModuleAsText
acCmdArrangeIconsByCreated acCmdInsertPicture acCmdSaveRecord
acCmdArrangeIconsByModified acCmdInsertProcedure acCmdSelectAll
acCmdArrangeIconsByName acCmdInsertQueryColumn acCmdSelectAllRecords
acCmdArrangeIconsByType acCmdInsertRows acCmDSelectDataAccessPage
acCmdAutoCorrect acCmdInsertTableColumn acCmdSelectForm
acCmdAutoDial acCmdInvokeBuilder acCmdSelectRecord
acCmdAutoFormat acCmdJoinProperties acCmdSelectReport
acCmdBookmarksClearAll acCmdLastPosition acCmdSend
acCmdBookmarksNext acCmdLayoutPreview acCmdSendToBack
acCmdBookmarksPrevious acCmdLineUpIcons acCmdSetControlDefaults
acCmdBookmarksToggle acCmdLinkTables acCmdSetDatabasePassword
acCmdBringToFront acCmdListConstants acCmdSetNextStatement
acCmdCallStack acCmdLoadFromQuery acCmdShowAllRelationships
acCmdChangeToCheckBox acCmdMacroConditions acCmdShowDirectRelationships
acCmdChangeToComboBox acCmdMacroNames acCmdShowMembers
acCmdChangeToImage acCmdMicrosoftAccessHelpTopics acCmdShowNextStatement
acCmdChangeToLabel acCmdMicrosoftOnTheWeb acCmdShowOnlyWebToolbar
acCmdChangeToListBox acCmdMicrosoftScriptEditor acCmdShowPaneDiagram
acCmdChangeToOptionButton acCmdMoreWindows acCmdShowPaneGrid
acCmdChangeToTextBox acCmdNewDatabase acCmdShowPaneView
acCmdChangeToToggleButton acCmdNewObjectAutoDataAccessPage acCmdShowTable
acCmdClearAll acCmdNewObjectAutoForm acCmdSingleStep
acCmdClearAllBreakpoints acCmdNewObjectAutoReport acCmdSizeToFit
acCmdClearGrid acCmdNewObjectClassModule acCmdSizeToFitForm
acCmdClearItemDefaults acCmdNewObjectDataAccessPage acCmdSizeToGrid
acCmdClose acCmdNewObjectDiagram acCmdSizeToNarrowest
acCmdCloseWindow acCmdNewObjectForm acCmdSizeToWidest
acCmdColumnWidth acCmdNewObjectMacro acCmdSnapToGrid
acCmdCompactDatabase acCmdNewObjectModule acCmdSortAscending
acCmdCompileAllModules acCmdNewObjectQuery acCmdSortDescending
acCmdCompileAndSaveAllModules acCmdNewObjectReport acCmdSortingAndGrouping
acCmdCompileLoadedModules acCmdNewObjectStoredProcedure acCmdSpelling
acCmdCompleteWord acCmdNewObjectTable acCmdSQLView
acCmdControlWizardsToggle acCmdNewObjectView acCmdStartupProperties
acCmdConvertDatabase acCmdObjBrwFindWholeWordOnly* acCmdStepOut
acCmdConvertMacrosToVisualBasic acCmdObjBrwGroupMembers* acCmdStepOver
acCmdCopy** acCmdObjBrwHelp* acCmdStepToCursor
acCmdCopyHyperlink acCmdObjBrwShowHiddenMembers* acCmdStopLoadingPage
acCmdCreateMenuFromMacro acCmdObjBrwViewDefinition* acCmdSubformDatasheet
acCmdCreateRelationship acCmdObjectBrowser* acCmdSynchronizeNow
acCmdCreateReplica acCmdOLEDDELinks acCmdTabControlPageOrder
acCmdCreateShortcut acCmdOLEObjectConvert acCmdTableNames
acCmdCreateShortcutMenuFromMacro acCmdOLEObjectDefaultVerb acCmdTabOrder
acCmdCreateToolbarFromMacro acCmdOpenDatabase acCmdTestValidationRules
acCmdCut** acCmdOpenHyperlink acCmdTileHorizontally
acCmdDataAccessPageBrowse acCmdOpenNewHyperlink acCmdTileVertically
acCmdDataAccessPageDesignView acCmdOpenSearchPage acCmdToggleBreakpoint
acCmdDatabaseProperties acCmdOpenStartPage acCmdToggleFilter
acCmdDataEntry acCmdOpenTable acCmdToolbarControlProperties
acCmdDatasheetView acCmdOpenURL acCmdToolbarsCustomize**
acCmdDateAndTime acCmdOptions** acCmdTransparentBackground
acCmdDebugWindow acCmdOutdent acCmdTransparentBorder
acCmdDelete** acCmdOutputToExcel acCmdUndo**
acCmdDeletePage acCmdOutputToRTF acCmdUnfreezeAllColumns
acCmdDeleteQueryColumn acCmdOutputToText acCmdUnhideColumns
acCmdDeleteRecord acCmdPageHdrFtr acCmdUserAndGroupAccounts
acCmdDeleteRows acCmdPageNumber acCmdUserAndGroupPermissions
acCmdDeleteTab acCmdPageSetup acCmdUserLevelSecurityWizard
acCmdDeleteTableColumn acCmdParameterInfo acCmdVerticalSpacingDecrease
acCmdDeleteWatch acCmdPaste** acCmdVerticalSpacingIncrease
acCmdDesignView acCmdPasteAppend acCmdVerticalSpacingMakeEqual
acCmdDiagramAddRelatedTables acCmdPasteSpecial acCmdViewCode
acCmdDiagramAutosizeSelectedTables acCmdPreviewEightPages acCmdViewDataAccessPages
acCmdDiagramDeleteRelationship acCmdPreviewFourPages acCmdViewDetails
acCmdDiagramLayoutDiagram acCmdPreviewOnePage acCmdViewDiagrams
acCmdDiagramLayoutSelection acCmdPreviewTwelvePages acCmdViewFieldList
acCmdDiagramModifyUserDefinedView acCmdPreviewTwoPages acCmdViewForms
acCmdDiagramNewLabel acCmdPrimaryKey acCmdViewGrid
acCmdDiagramNewTable acCmdPrint** acCmdViewLargeIcons
acCmdDiagramRecalculatePageBreaks acCmdPrintPreview acCmdViewList
acCmdDiagramRelationshipLabels acCmdProcedureDefinition acCmdViewMacros
acCmdDiagramViewPageBreaks acCmdProperties acCmdViewModules
acCmdDocMaximize** acCmdPublish acCmdViewQueries
acCmdDocMinimize** acCmdPublishDefaults acCmdViewReports
acCmdDocMove** acCmdQueryAddToOutput acCmdViewRuler
acCmdDocRestore** acCmdQueryParameters acCmdViewSmallIcons
acCmdDocSize** acCmdQueryTotals acCmdViewStoredProcedure
acCmdDocumenter acCmdQueryTypeAppend acCmdViewTableColumnNames
acCmdDuplicate acCmdQueryTypeCrosstab acCmdViewTableColumnProperties
acCmdEditHyperlink acCmdQueryTypeDelete acCmdViewTableKeys
acCmdEditingAllowed acCmdQueryTypeMakeTable acCmdViewTableNameOnly
acCmdEditRelationship acCmdQueryTypeSelect acCmdViewTables
acCmdEditTriggers acCmdQueryTypeSQLDataDefinition acCmdViewTableUserView
acCmdEditWatch acCmdQueryTypeSQLPassThrough acCmdViewToolbox
acCmdEncryptDecryptDatabase acCmdQueryTypeSQLUnion acCmdViewVerifySQL
acCmdEnd acCmdQueryTypeUpdate acCmdViewViews
acCmdExit acCmdQuickInfo acCmdWindowArrangeIcons
acCmdFavoritesAddTo acCmdQuickPrint acCmdWindowCascade
acCmdFavoritesOpen acCmdQuickWatch acCmdWindowHide
acCmdFieldList acCmdRecordsGoToFirst acCmdWindowSplit
acCmdFilterByForm acCmdRecordsGoToLast acCmdWindowUnhide
acCmdFilterBySelection acCmdRecordsGoToNew acCmdWordMailMerge
acCmdFilterExcludingSelection acCmdRecordsGoToNext acCmdZoom10
acCmdFind** acCmdRecordsGoToPrevious acCmdZoom100
acCmdFindNext** acCmdRecoverDesignMaster acCmdZoom150
acCmdFindNextWordUnderCursor acCmdRedo acCmdZoom200
acCmdFindPrevious acCmdReference acCmdZoom25
acCmdFindPrevWordUnderCursor acCmdRefresh acCmdZoom50
acCmdFitToWindow acCmdRefreshPage acCmdZoom75
acCmdFont acCmdRegisterActiveXControls acCmdZoomBox
acCmdFormatCells acCmdRelationships acCmdZoomSelection
acCmdFormHdrFtr acCmdRemove  
acCmdFormView acCmdRemoveFilterSort  
acCmdFreezeColumn acCmdRemoveTable  
acCmdGoBack