I have written a procedure that runs when a command button is clicked in the subform. I would like to call this procedure from another form so that instead of clicking the button in the subform, the user can click a button in the main form and execute the code (I eventually want to hide the subform).
I know that in VB you can call a command button by using FormName.cmdbutton_click. However, I can't seem to get this to work in VBA.
Can anyone help?
Thank you!
I know that in VB you can call a command button by using FormName.cmdbutton_click. However, I can't seem to get this to work in VBA.
Can anyone help?
Thank you!