You can open a procedure On_Click (choose Procedure in the list of choices for the event), then write you function and its parameters in this sub.
Or you can write your function directly in the On-Click property of the form:
= YourFunctionName(Argument1;Argument2...)
HTH
Alex