Connecting Tech Pros Worldwide Help | Site Map

a button to run a macro

  #1  
Old November 13th, 2005, 09:30 AM
gzimmer@linerlaw.com
Guest
 
Posts: n/a
My MSAccess wizard is not working properly. I am trying to create a
button to run a macro. Can anyone tell me the SQL code that I can put
into the event procedure to make it happen?

Thanks!

PS: I am also trying to get a button to open a form and to run a report.

  #2  
Old November 13th, 2005, 09:30 AM
pietlinden@hotmail.com
Guest
 
Posts: n/a

re: a button to run a macro



gzim...@linerlaw.com wrote:[color=blue]
> My MSAccess wizard is not working properly. I am trying to create a
> button to run a macro. Can anyone tell me the SQL code that I can[/color]
put[color=blue]
> into the event procedure to make it happen?
>
> Thanks!
>[/color]
Public Sub RunMyMacro()
DoCmd.RunMacro "MacroName"
End Sub


SQL code? That's for data/table manipulation...

  #3  
Old November 13th, 2005, 09:32 AM
gzimmer@linerlaw.com
Guest
 
Posts: n/a

re: a button to run a macro


Thanks, my novice nature show's through. But your thing worked.

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access VBA to run Macro when an excel toolbar button is clicked JFKJr answers 3 August 10th, 2008 10:36 PM
Php code to run a macro after outputting excel sheet shara answers 4 January 29th, 2008 06:23 AM
How to run multiple queries through a macro? swb76 answers 3 July 31st, 2007 07:45 PM
Macros to run and export multiple reports Makuhari1998 answers 0 November 12th, 2005 06:55 PM