Results 1 to 7 of 7
  1. #1
    fekrinejat is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    29

    Problem with relationship subforms in access 2010

    here is the situation :



    There are three Tables (Person , Education , Relative)
    There is Person_No field in all of them which is (PK) in Person Table
    and (FK) in two others .. so there is a One-to-many relationship
    between (Person - Education) and (Person - Relative)

    Now if i create a Form based on Person , i can't see
    two other tables (Education , Relative) as subform in a Tab (a view) ..

    any idea about fixing this problem
    Thanks

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,618
    I don't understand the issue. Why can't you see the other tables in subforms on Tab control?
    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
    fekrinejat is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    29
    Actually When i click on Person Table from Tables List and select "Form" from "Create" Tab
    i expect to show me Person records list on top and two subform (Education , Relative) in below,
    but i can just see Person Record ..

    When i open Person Table , there is + sign and when i click on it a window contains tables
    will apprear which i have to select one of tables due to show related record in that table..

    sorry about my bad explanation

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,618
    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.

  5. #5
    fekrinejat is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    29
    It didn't help .. i know how to use Form and SubForm in Parent/Child structure
    it works when my relationship is like:

    A---> B---> C

    But my situation is like :

    A ----> B
    A ----> C
    A ----> D
    A ----> E

    on just one unique field shared between tables .. Access tells me you have to
    choose one of your relationship due to view in Form/SubForm..

    I need A on Top and four SubForms in one page in down which is related to A


    any idea ?

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,618
    The first example looks look a form/subform/subsubform arrangement.

    Don't understand why the second example is an issue. Should be able to have multiple subforms linked to the same parent main form.

    If you want to provide db for analysis, follow instructions at bottom of my post.
    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.

  7. #7
    fekrinejat is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    29
    That was my stupid mistake , it fixed .. thank you

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

Similar Threads

  1. Replies: 2
    Last Post: 03-07-2013, 06:35 PM
  2. Replies: 4
    Last Post: 07-13-2012, 01:41 PM
  3. subforms and relationship
    By phineas629 in forum Reports
    Replies: 3
    Last Post: 10-13-2011, 02:15 PM
  4. Access 2010 Problem
    By DSTR3 in forum Access
    Replies: 7
    Last Post: 11-29-2010, 05:11 PM
  5. Relationship Between Two Subforms
    By eww in forum Programming
    Replies: 2
    Last Post: 09-13-2010, 07:15 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