Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling a macro from form (button click)

Status
Not open for further replies.

aas1611

Programmer
Dec 14, 2001
184
0
0
DE
Hi all,

I have the next problem.

I have a macro, called let's say macro1. This macro opens a report (openReport).

On a form, I want to call this macro with a click of a button. Does anybody know (the command) how to this? I used

doCmd.RunMacro macro1

but it didn't work.

Please help! and Thanks!


Andre
 
bring up the properties for the button then select the event tab. under the on_click field there should be a drop down to select the macro
 
Hey, thanks! I never thought there existed a much easier way.

Not to push my luck, but, do you happen to know the answer of my other question (thread700-1179214)?

Andre
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top