Assigning a Function to a button on a form

R

Rafi

I am trying to move from an Access switchboard to my own menu and cannot find
a way to assign specific functions to buttons on my form. For example, I
would like to execute the function Del_Performance_PC() contained ina a
module named modPerformance_PC by clicking a button cmdBtn1

Any help is apperciated.
 
B

BruceM

Open the button's property sheet, click the Event tab, click into the white
space next to Click, and put:
=Del_Performance_PC()

This assumes you don't have any other code in the click event. If you do,
add a line of code to the VBA procedure:
Call Del_Performance_PC()
 
F

fredg

I am trying to move from an Access switchboard to my own menu and cannot find
a way to assign specific functions to buttons on my form. For example, I
would like to execute the function Del_Performance_PC() contained ina a
module named modPerformance_PC by clicking a button cmdBtn1

Any help is apperciated.

Code the button's Click event:

Del_Performance_PC
 
Top