
Trying to execute a private procedure from another form
Remove the "Private" keyword from the subroutine's declaration.
You can then call it by referring to the module it belongs to.
For example to call the Click event procedure of a command button named
"DoThis" on a form named "MyForm":
Call Form_MyForm.DoThis_Click
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to the newsgroup. (Email address has spurious "_SpamTrap")
Quote:
> I have a form which contains a button to open a pop-up
> form. When the pop-up form is closed it appends these
> records to the subform on my primary form. I then requery
> the subform. The next thing I would like to have happen is
> to execute a private subroutine within the subform. I have
> tried everything I know of. I can have the focus set to
> the subform but still can't find a way to execute the
> subroutine. The message I get from the Pop-up is
> unidentified procedure. Any ideas would be greatly
> appreciated.