Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2006
    Posts
    2

    Main form linking 3 subforms via command buttons...

    Alright I give up. I searched the forums and read up but still not grasping it. I know I've done something like this before but my brain must be dead today.



    So I have 4 important tables. I have a main one and 3 tables that have records related to the main one. They're all the "many" sides of the one to many relationship with the main table. Outline is below:

    Main Table:
    EMP_ID (Primary key)
    ...and other fields

    Employment Table:
    HIRE_ID (Primary key)
    EMP_ID (for relationship)
    ...and other fields

    Insurance Table:
    INS_ID (Primary key)
    EMP_ID (for relationship)
    ...and other fields

    Skill Table:
    SKILL_ID (Primary key)
    EMP_ID (for relationship)
    ...and other fields

    So basically what I'm looking for is to have a main form pop up that has the Main table information (employee info). Then on that form I want 3 command buttons, each one going to a new form that relates to the three tables above and is relative to the Main table. Each employee may have several hire/fire listings, insurance listings (if they change their insurance), and skill ratings (updated as they improve). When I have set all my relationships so that the EMP_ID on the Main table has a one to many relationship with all the EMP_IDs on the other tables. When I create the command buttons though and start to populate a record in one of the three "subforms" the EMP_ID is not populating to be the same as the EMP_ID from the main page thus making me unable to create a record because it doesn't recognize a related record.

    What the heck am I doing wrong

  2. #2
    Join Date
    Dec 2005
    Location
    Wilmington, DE - USA
    Posts
    275
    Why not simply embed all three related forms as subforms in the main form?

  3. #3
    Join Date
    Apr 2006
    Posts
    2
    Because I really want them separated. With that many subforms it just gets cluttered and to me and the user friendlyness of buttons it makes it easier for the end user. I have to make it simplistic as possible for those who will be using it

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

Similar Threads

  1. Replies: 0
    Last Post: 08-17-2008, 12:19 PM
  2. Subforms
    By henryclay in forum Access
    Replies: 0
    Last Post: 07-24-2007, 07:51 AM
  3. Replies: 2
    Last Post: 09-14-2006, 04:12 AM
  4. Replies: 1
    Last Post: 02-27-2006, 07:46 AM
  5. Subform vs main form calculation
    By fadone in forum Forms
    Replies: 17
    Last Post: 12-21-2005, 07:27 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