Results 1 to 5 of 5
  1. #1
    fat ralphy is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2011
    Posts
    7

    ID Link issues between Forms/Tables

    I am building a database that tracks patients trips from a facility to a local hospital.

    My issue, how to link the unique ID from my control table/form to automatically show up in other tables and forms? I cannot use name or any other information as my unique identifier because I am tracking the specific trip to the hospital, and one patient may have multiple trips.

    The other issue is that users will only be entering information via forms, is there a way to insure that the unique ID from my Control table/form show up through all other tables/forms?

    I know this is a real noob question, but I have not been able to figure this out through my own research.

    Link to ControlTable image:


    http://flic.kr/p/auZgsA

    ControlForm image:
    http://flic.kr/p/auZgru

    SubTable image:
    http://flic.kr/p/auZgpy

    SubForm image:
    http://flic.kr/p/auWzEa

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Proper form/subform arrangements with Master/Child link settings should control keys saved to tables.
    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
    fat ralphy is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2011
    Posts
    7
    I have set the ID in my control table as the parent for the ID in sub tables.

    http://www.flickr.com/photos/68515330@N05/6240843101/

    I used the ID in the control table, linked to the first sub table ID, then linked the ID of first sub table to the next etc.

    Would this work or will I need to link the ID from the control form to the ID field in each sub form directly?

    When I "submit" information through my control form, it records the new record, ideally I could then use a button to navigate to the next appropriate form and have the ID number automatically populated by the ID generated in the control form. Is this possible?

    Is my mistake that I have an ID field on the second form when it is only needed in the table?

    My apologies for my poor description, I am rather new to all of this.

  4. #4
    fat ralphy is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2011
    Posts
    7
    I am beginning to think it will be easier to just have one table and only one form...

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Might be easier, depends on data. Could result in a huge 'flat file' table with lots of empty cells. Not a strictly 'normalized' structure but if it works...

    Can't get any of your image links to work now.
    Last edited by June7; 10-13-2011 at 11:07 PM.
    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: 12
    Last Post: 10-20-2014, 11:22 AM
  2. Link two forms to display related data
    By KrisDdb in forum Forms
    Replies: 3
    Last Post: 09-19-2011, 02:41 PM
  3. Link to Forms
    By Luke in forum Forms
    Replies: 1
    Last Post: 07-14-2011, 08:51 AM
  4. Replies: 5
    Last Post: 05-24-2010, 11:52 AM
  5. Replies: 2
    Last Post: 05-19-2010, 02:01 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