Results 1 to 7 of 7
  1. #1
    jo15765's Avatar
    jo15765 is offline Expert
    Windows 7 Access 2000
    Join Date
    Nov 2010
    Location
    6 Feet Under
    Posts
    672

    Macro Question

    There are several macro's in a database that I did not create. I am wanting to view what the macro actually does, but I do not know how to look at the code that runs when the macro is executed. Can someone tell me how to do this?

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    look in design view, jo. all the info is there. if code is run, look at the function name and search for it in the vbe.

    btw, I've noticed that when you post questions you post A LOT of them at one time. Sometimes one right after the other. Any particular reason for this??

  3. #3
    jo15765's Avatar
    jo15765 is offline Expert
    Windows 7 Access 2000
    Join Date
    Nov 2010
    Location
    6 Feet Under
    Posts
    672
    i looked in design view but i didn't see the macro's. maybe it is a option in one of the toolbars?

    the reason i will often post is i inherited several databases, and either i am trying to decipher the code already in the database, or i am attempting to make an enhancement that i can not discover how to do by 1) trial and error 2) googling and/or searching the forum or 3) searching in a access 2000 handbook that i have.

  4. #4
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Quote Originally Posted by jo15765 View Post
    i looked in design view but i didn't see the macro's.
    for someone that's experienced in Access, this statement is a little bit strange, jo.

    I said look in the design view of the MACROS themselves. I'm not really sure what design view you're talking about.

    Do you have any experience looking at a macro object in design view?? You know that a macro is an object that's located in the database window, right?

  5. #5
    jo15765's Avatar
    jo15765 is offline Expert
    Windows 7 Access 2000
    Join Date
    Nov 2010
    Location
    6 Feet Under
    Posts
    672
    When I open up the design view of the macro it looks similar to a table (at least imo) and it has an "action" column and it shows the macro name. I don't see what happens when this macro is run, and that is what I am trying to see.

    No, I have no experiance with macro's. If this is even possible, I am wanting to view the "event code" (what happens when the macro is run) so I can tie these macro's into the big picture of the database I am working on.

  6. #6
    jo15765's Avatar
    jo15765 is offline Expert
    Windows 7 Access 2000
    Join Date
    Nov 2010
    Location
    6 Feet Under
    Posts
    672
    Disregard I just found it. I just had to click the macro, and then go to tools, macro's and then convert macro to VB and I can view the code there.

  7. #7
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Macros are not VBA code.

    You converted a macro to VBA. When you are looking at the macro in design view, click on the macro "Action" column, then look towards the bottom of the screen.

    If the action was "OpenForm", the dialog box at the bottom of the screen would have a line "Form Name" caption and a place to enter the form name.

    As you moved down the action column, you would see the different arguments for each action.

    Again, Macros and VBA code are not the same thing.

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

Similar Threads

  1. Replies: 0
    Last Post: 01-12-2011, 12:43 PM
  2. VBA Macro
    By DSTR3 in forum Access
    Replies: 1
    Last Post: 11-30-2010, 11:42 AM
  3. Macro Question
    By Desstro in forum Programming
    Replies: 1
    Last Post: 06-18-2010, 10:05 AM
  4. Question on Macro to automate file import
    By delkath in forum Access
    Replies: 4
    Last Post: 05-25-2010, 04:28 AM
  5. MACRO help please
    By DianeG in forum Forms
    Replies: 2
    Last Post: 04-20-2010, 07:19 AM

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