Results 1 to 3 of 3
  1. #1
    data808 is offline Noob
    Windows XP Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    727

    Macro Builder and Code Builder


    How do I add code if a button already has an action in macro builder? Is there a way to get to code builder? If I click on those 3 dots next to the drop down menu for an On Click event for example, if there is nothing attached to this button it will ask me if I want Macro, Expression, or Code Builders. However, if something is already attached to this then it will just take me to whatever is attached and in this case its the macro builder so I have no clue of where I can add code. Can someone help me with this? I am new to Access and am still learning. Thanks.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Select Code Builder for the VBA editor or select [Event Procedure] from the event property dropdown then click the ellipsis (...) to go to the VBA procedure.

    Is that what you want to know?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    You can either call a macro or code from the event, not both. That said, you could run a macro from within VBA code or call a public VBA function from a macro. Or you can convert whatever the macro is doing to VBA and do it all from code.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Login Security w/ Macro Builder and Table
    By benthamq in forum Programming
    Replies: 14
    Last Post: 01-28-2013, 03:51 PM
  2. I want to use the macro builder!
    By opopanax666 in forum Access
    Replies: 5
    Last Post: 11-29-2012, 10:18 AM
  3. Expression Builder in Data Macro
    By Korreia in forum Access
    Replies: 5
    Last Post: 11-14-2012, 05:16 PM
  4. Run Query in Macro Builder
    By chewbears in forum Queries
    Replies: 0
    Last Post: 11-21-2011, 09:18 AM
  5. Correct way to SetProperty with Macro Builder
    By jasonbarnes in forum Forms
    Replies: 4
    Last Post: 02-25-2011, 02:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums