Connecting Tech Pros Worldwide Help | Site Map

a button to run a macro

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 13th, 2005, 08:30 AM
gzimmer@linerlaw.com
Guest
 
Posts: n/a
Default a button to run a macro

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, 08:30 AM
pietlinden@hotmail.com
Guest
 
Posts: n/a
Default 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, 08:32 AM
gzimmer@linerlaw.com
Guest
 
Posts: n/a
Default Re: a button to run a macro

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

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.