HELP WITH A BUTTON or sumin

F

filnigeria

how on earth do i run my VBA code in access with out having to open to it
and running it

cant i make a button or even a keyboard shortcut like in excel
 
N

Nick Coe \(UK\)

A good beginning example of code run from a button is made
for you if you use the button wizard to create a command
button to close the form containing that button or to open
another form.

If you have created your vba code in modules as functions
you can use Call or just put the function name in code on a
button's on click event.

Access is an event driven environment. You use events like
clicking a button, a form closing or opening, the cursor
leaving a control and so on to trigger your pieces of code.

I beleive there is a section in the Access/VBA help which
describes the process of creating code for events.
 

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

Top