I have a command button on a subform whose on_click event is an embedded macro. The purpose is to delete/undo the associated record.
After that, I want to run another VBA procedure that is defined in the forms vb object:
In the embedded macro definition, I have added "RunMacro" and entered RunMacroTest as the procedure to run. I save everything, exit the design view and test. Nothing happens.Public Function RunMacroTest() MsgBox "A" End Function
How do you run a custom procedure after an embedded macro is run?
Thanks.



Reply With Quote
. To view the event properties for a specific control, click the control to select it. To view the event properties for the entire form or report, select Form or Report from the drop-down list at the top of the property sheet.Access opens the Visual Basic Editor and displays the event procedure in its class module. You can scroll up or down to view any other procedures that are in the same class module.

