This is an older document from Microsoft; however, it might yet "fit the bill;" however, even if not a perfect fit, this will at least give us a starting point from which to jump:
ACC: How to Dial a Phone Number from MS Access 95/97 In the linked to article, instead of a function as shown in step 3 and assigning as shown in step 5 - create a sub and assign by:
Opening the form in design view,
Add the button
In the on_Click event, select the "Code Builder"
In the
- Sub CommandButtonName_Click()
-
End Sub
that is created for the button event, insert the function's code as given above - including the parameters.
See how this goes. :)