Add a custom button that runs a Microsoft Visual Basic function to a toolbar
How?
To open a new standard module, in the Database window, click Modules under Objects, and then click the New button on the Database window toolbar.
To open an existing standard module, click Modules under Objects, select the module you want to open, and then click Design.
To open a form module or report module, open the form or report in Design view, and then click Code on the toolbar.
To open a new class module that isn't associated with a form or report, in the Database window click Class Module on the Insert menu.
To open an existing class module, in the Database window, click Modules under Objects, select the module you want to open, and then click the Design button on the Database window toolbar.
Function IsLoaded (strFormName As String) As Boolean
Add a custom command that runs a Visual Basic function to a menu
How?
To open a new standard module, in the Database window, click Modules under Objects, and then click the New button on the Database window toolbar.
To open an existing standard module, click Modules under Objects, select the module you want to open, and then click Design.
To open a form module or report module, open the form or report in Design view, and then click Code on the toolbar.
To open a new class module that isn't associated with a form or report, in the Database window click Class Module on the Insert menu.
To open an existing class module, in the Database window, click Modules under Objects, select the module you want to open, and then click the Design button on the Database window toolbar.
Function IsLoaded (strFormName As String) As Boolean
Note If you add a command to a built-in menu (for example, the Edit menu), that command will appear in all views containing that built-in menu.