Assigning a Function to a button on a form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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()
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top