Results 1 to 2 of 2
  1. #1
    Scott Chang is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2014
    Location
    Baltimore, Maryland, USA
    Posts
    2

    Access 2007: Macros I created are Unrelated Objects. Why?

    Hi all,



    I just started learning the Macros of Access 2007. I had 2 Tables: (1) tblCity with ID, City name, Population, Country, and (2) tblCounty with Country ID, Country name. I did "Relationships" on these 2 Tables. I also created Query1 and Form1 in this project.

    I created 2 Macros: Macro1ToOpenForm1 and Macro2ToOpentblCity by using the following Actions: OpenForm and GoToRecord / OpenTable and GoToRecord respectively. I did "RUN" on these 2 Macros - they worked and I added some new cities to the Form1 and tblCity. But, these 2 Macros appeared to be Unrelated Objects in the left Pane of All Tables. Why do I get the Unrelated Objects for the 2 Macros I just created? Did I miss something when I created these 2 Macros? How can I get the normal Related Objects for the Macros in this project? Please kindly help, anwser my questions and enlighten me in doing the Macros of Access 2007.

    Thanks in advance,
    Scott Chang

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,825
    I don't use macros, only VBA, as is the case for many experienced developers.

    Do you mean the macros don't show as related to objects they manipulate when the navigation pane is set to "Tables and Related Views". I expect this is normal behavior. Macros and general code modules are not really 'connected' to other objects. Not like a table or query used as the RecordSource of a form or report. Also, I don't think macros and code modules are really 'objects' like tables, queries, forms, reports - in spite of the fact the navigation pane has sections for them.
    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.

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

Similar Threads

  1. Replies: 10
    Last Post: 01-08-2015, 06:16 AM
  2. Replies: 3
    Last Post: 10-31-2013, 02:36 PM
  3. Replies: 2
    Last Post: 02-27-2013, 03:01 PM
  4. Replies: 1
    Last Post: 09-29-2011, 09:39 AM
  5. Last Record in macros ACCESS 2007
    By jcsuarez in forum Programming
    Replies: 2
    Last Post: 07-09-2011, 06:24 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