Results 1 to 12 of 12
  1. #1
    sdondeti is offline Novice
    Windows 98/ME Access 2003
    Join Date
    Aug 2009
    Posts
    23

    Need help in finding Macro definition


    Hi all, I trying to find out the macro's definition in my access application, below is the sample code in one of the methods.

    Dim stDocName As String
    stDocName = "HomePage Override"
    DoCmd.RunMacro stDocName

    I searched all the database i couldn't find the macro nammed with "HomePage Override" and all others.

    When RunMacro is called where is it getting stDocName? Can some one help me to open this macro definition. Past two days i am struggling to find out. please help me out.

    Thanks,

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Examine your macros for "HomePage Override". First click the Macro icon on the Database left hand pane. Look inside each macro and see if you can find that string.

  3. #3
    sdondeti is offline Novice
    Windows 98/ME Access 2003
    Join Date
    Aug 2009
    Posts
    23
    Thanks for your reply.

    I examine in macros i don't find not even one macro in my database. I even looked under tools > macros , i don't find any to run. But in my application there are many docmd.runmacro commands called.

    Thanks,

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Do you open your db while holding down a <SHIFT> key? Does it change anything? Can you zip up and post your db?

  5. #5
    sdondeti is offline Novice
    Windows 98/ME Access 2003
    Join Date
    Aug 2009
    Posts
    23
    yes i opened by holding <shift> key. db is of 126mb size and it's a highly important data available.

    Thanks,

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    How about creating a new empty db and importing everything but the data in the tables? Access lets you just import the structure of the tables. that way the forms will load but you will not have exposted and sensitive data. Compact and Repair and then zip up the db and see what size you have. If over 2MB then maybe one of the free file hosting sites.

  7. #7
    sdondeti is offline Novice
    Windows 98/ME Access 2003
    Join Date
    Aug 2009
    Posts
    23
    Is it ok if i sent you personally, its important application my client is being used.
    Thanks,

  8. #8
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Just open the db and go to Tools>Options>View tab and select "Show Hidden Objects".

  9. #9
    sdondeti is offline Novice
    Windows 98/ME Access 2003
    Join Date
    Aug 2009
    Posts
    23
    Great, Appreciated. Thank you very much for your help.

    How can i see the code from these macros objects?

  10. #10
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Just select one and go into design mode.

  11. #11
    sdondeti is offline Novice
    Windows 98/ME Access 2003
    Join Date
    Aug 2009
    Posts
    23
    Hi RG,

    Thank you for you help. I opened in Design mode it took me to a spread sheet with condition & action columns as below:
    [Forms]![QA Home]![Selection Criteria]=1
    Is there any thing i have to set properties to view the code?

    Thanks,

  12. #12
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    There is *no* code for a macro. It is a macro. Help might assist in understanding how macro's work. If you wanted, you could open a macro in design mode and then SaveAs Module which would create a module with the code that would do the same thing as the macro. You would then have a duplicate procedure and need to delete one of them or you would have an error if you tried to run.

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

Similar Threads

  1. FileSearch object not finding files
    By tdalber in forum Programming
    Replies: 3
    Last Post: 05-14-2009, 10:16 AM
  2. Replies: 0
    Last Post: 08-13-2008, 03:15 PM
  3. Finding data that doesn't match
    By dlhayes in forum Queries
    Replies: 1
    Last Post: 11-11-2006, 08:14 PM
  4. Finding data between two date for any year
    By gemini2 in forum Access
    Replies: 4
    Last Post: 04-05-2006, 06:20 AM
  5. Criteria Definition
    By claing in forum Access
    Replies: 1
    Last Post: 12-19-2005, 07:46 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