
Call procedure on "On Click" event
hello Steven
in the propertysheet of the commandbutton, select "event
procedure" from the drop-down list and then click the
three dots(...) to the right
this will take you inside the OnClick event in which you
can call whatever procedure you want:
Private Sub Command0_Click()
MyProcedure
...
End Sub
hope this helps
Erez.
Quote:
>-----Original Message-----
>Hello,
>I have a procedure inside a form called "MyProcdure".
How do I call this
>procedure from the "On Click" event? I
tried "=MyProcedure" and
Quote:
>"=MyProcedure()". When I do, I get the error
that "Access can't find the
Quote:
>macro '=MyProcedure()" .
>--
>Thanks in advance,
>Steven
>.