DoCmd Members (Access)
You can use the methods of the DoCmd object to run Microsoft Office Access actions from Visual Basic. An action performs tasks such as closing windows, opening forms, and setting the value of controls.
Methods
Name |
Description |
---|---|
The AddMenu method carries out the AddMenu action in Visual Basic. |
|
The ApplyFilter method carries out the ApplyFilter action in Visual Basic. |
|
The Beep method carries out the Beep action in Visual Basic. |
|
The BrowseTo method performs the BrowseTo action in Visual Basic. |
|
The CancelEvent method carries out the CancelEvent action in Visual Basic. |
|
Removes information about an error that is stored in the MacroError object. |
|
The Close method carries out the Close action in Visual Basic. |
|
Closes the current database. |
|
Copies the database connected to the current project to a Microsoft SQL Server database file for export. |
|
The CopyObject method carries out the CopyObject action in Visual Basic. |
|
The DeleteObject method carries out the DeleteObject action in Visual Basic. |
|
Displays the appropriate menu or toolbar command for Microsoft Access. |
|
Carries out the Echo action in Visual Basic. |
|
The FindNext method carries out the FindNext action in Visual Basic. |
|
The FindRecord method carries out the FindRecord action in Visual Basic. |
|
The GoToControl method carries out the GoToControl action action in Visual Basic. |
|
Carries out the GoToPage action in Visual Basic. . |
|
The GoToRecord method carries out the GoToRecord action in Visual Basic. |
|
The Hourglass method carries out the Hourglass action in Visual Basic. |
|
You can use the LockNavigationPane action to prevent users from deleting database objects that are displayed in the Navigation Pane. |
|
The Maximize method carries out the Maximize action in Visual Basic. |
|
The Minimize method carries out the Minimize action in Visual Basic. |
|
The MoveSize method carries out the MoveSize action in Visual Basic. |
|
You can use the NavigateTo method to control the display of database objects in the Navigation Pane. . |
|
The OpenDataAccessPage method carries out the OpenDataAccessPage action in Visual Basic. |
|
The OpenDiagram method carries out the OpenDiagram action in Visual Basic. |
|
The OpenForm method carries out the OpenForm action in Visual Basic. |
|
Opens a user-defined function in a Microsoft SQL Server database for viewing in Microsoft Access. |
|
The OpenModule method carries out the OpenModule action in Visual Basic. |
|
The OpenQuery method carries out the OpenQuery action in Visual Basic. |
|
The OpenReport method carries out the OpenReport action in Visual Basic. |
|
The OpenStoredProcedure method carries out the OpenStoredProcedure action in Visual Basic. |
|
The OpenTable method carries out the OpenTable action in Visual Basic. |
|
The OpenView method carries out the OpenView action in Visual Basic. |
|
The OutputTo method carries out the OutputTo action in Visual Basic. |
|
The PrintOut method carries out the PrintOut action in Visual Basic. |
|
The Quit method quits Microsoft Access. You can select one of several options for saving a database object before quitting. |
|
The RefreshRecord method performs the RefreshRecord macro operation from Visual Basic. |
|
The Rename method carries out the Rename action in Visual Basic. |
|
The RepaintObject method carries out the RepaintObject action in Visual Basic. |
|
Carries out the Requery action in Visual Basic. |
|
The Restore method carries out the Restore action in Visual Basic. |
|
The RunCommand method runs a built-in command. |
|
Use the RunDataMacro method to run a named data macro from Visual Basic. |
|
The RunMacro method carries out the RunMacro action in Visual Basic. |
|
Rrun a saved import or export specification. |
|
The RunSQL method carries out the RunSQL action in Visual Basic. |
|
The Save method carries out the Save action in Visual Basic. |
|
You can use the SearchForRecord method to search for a specific record in a table, query, form, or report. |
|
The SelectObject method carries out the SelectObject action in Visual Basic. |
|
The SendObject method carries out the SendObject action in Visual Basic. |
|
Specifies which categories are displayed under Navigate to Category in the title bar of the Navigation Pane. . |
|
Use the SetFilter method to apply a filter to the records in the active datasheet, form, report, or table. |
|
The SetMenuItem method carries out the SetMenuItem action in Visual Basic. |
|
Use the SetOrderBy method to apply a sort to the active datasheet, form, report, or table. |
|
Use the SetParameter method to create a parameter for use by the BrowseTo, OpenForm, OpenQuery, OpenReport, or RunDataMacro methods. |
|
The SetProperty method carries out the SetProperty action in Visual Basic. |
|
The SetWarnings method carries out the SetWarnings action in Visual Basic. |
|
The ShowAllRecords method carries out the ShowAllRecords action in Visual Basic. |
|
The ShowToolbar method carries out the ShowToolbar action in Visual Basic. |
|
Pauses macro execution and opens the Macro Single Step dialog box. |
|
The TransferDatabase method carries out the TransferDatabase action in Visual Basic. |
|
You can use the TransferSharePointList method to import or link data from a Windows SharePoint Services 3.0 site. |
|
The TransferSpreadsheet method carries out the TransferSpreadsheet action in Visual Basic. |
|
Transfers the entire specified Microsoft SQL Server database to another SQL Server database. |
|
The TransferText method carries out the TransferText action in Visual Basic. |