Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21
  1. #16
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,825
    If Master/Child links properties are correctly set, then only related records should show. Without directly viewing db, can't really say what the issue is. 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.

  2. #17
    jim.thornton is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2020
    Posts
    29
    Quote Originally Posted by June7 View Post
    If Master/Child links properties are correctly set, then only related records should show. Without directly viewing db, can't really say what the issue is. If you want to provide db for analysis, follow instructions at bottom of my post.
    Thank you for your help.
    Attached Files Attached Files

  3. #18
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,825
    Subform is in form Footer section and it is set as not visible. Suggest moving subform to Detail section.
    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.

  4. #19
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,737
    Then you can create different strategies (or scenarios) that you can work with.
    For what, members or strategies? I think you mean members, yet you have linked strategies to households.

    Not sure how else to explain the rest of my post except to say if I'm right about strategies and you follow that logic, then see if this fits:

    A household (1) links to many members. (if) A member can only can only have one strategy, so it's a FK field in members.

    A member has income, so memberPk links to incomeFK

    I don't know what a strategy is, but if it relates to a member, then should it should link to members. You can only figure out who the member is by going through your linking table, which as I said, contains no real data - it's just foreign key values from other tables. I still don't see the need for it, but if it works then leave it I guess. The one thing I'd caution against is to spend a lot of time dickering with forms and reports if you're not sure you have your relationships right (I'm assuming you're not sure since you're asking).
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  5. #20
    jim.thornton is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2020
    Posts
    29
    Thank you for your help! I moved the subform as you suggested and it works perfectly.

    I have set up the subform so that you cannot add or edit the members in the list. This is buy design, but I want to have an add, edit and delete button for the members. What is the best way to do this? I created a new form and set it to data entry yes and turned edits and deletions to NO. When I open the form, it works well.

    Now, I need to know how to pass the HouseholdID into the form and link it to the foreign key. Can you advise how to do that? Because it isn't a "subform" I don't now where or how to change the master/child fields.

  6. #21
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,825
    Master/child links are properties of subform/subreport container control. If you don't use form/subform arrangement then there are no links properties available.

    Several ways to pass data between forms. Explore OpenArgs, TempVar, global variable, and simply referencing field/control on an open form.
    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.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 8
    Last Post: 03-18-2016, 07:13 AM
  2. How to auto populate a form field
    By Ayiramala in forum Access
    Replies: 2
    Last Post: 05-09-2015, 04:12 AM
  3. Replies: 3
    Last Post: 10-03-2011, 02:33 PM
  4. Auto populate a field (without a form)
    By DonL in forum Access
    Replies: 1
    Last Post: 06-21-2011, 03:19 AM
  5. Replies: 3
    Last Post: 10-05-2009, 07:22 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