Results 1 to 5 of 5
  1. #1
    Duncan Pucher is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Jun 2019
    Location
    Bellevue, WA
    Posts
    49

    I have a subform on a tab/Page but it doesn't align with the records from the main form

    Forum Users,



    I created a form/subform called "AlertChartingResidenttblfrm" and "AlertChartingsubform" and copied to a tab/Page. I want the records in the subform to relate to the records in the main form called "frmResidents" however when I move to a record in the main form the records in the form/subform don't change. Another user setup a tab/Page called "AlertDSN" that does function like I want it with a lookup for the resident name and a count of records "txtrecordno" in the subform. Could someone help me to know how to make the subform records relate to the main form records and show the count of records in a textbox?

    Your help is appreciated,
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Looked at AlertChartingResidenttblform and its subform. Normally a form should do data entry/input for 1 table. Observations is not a field in AlertChartingtbl and should not allow edits to that field from this form. Set Locked Yes and TabStop No.

    Master/Child Links properties are not set for subform container control holding AlertChartingResidenttblform. Maybe AlertChartingtblSubform should be directly on Tab page.

    frmResidents doesn't show RecNum field in the RecordSource query in Design view but the wildcard shows in SQLview so this makes all fields available. A little confusing.
    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
    Duncan Pucher is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Jun 2019
    Location
    Bellevue, WA
    Posts
    49
    June,

    I agree about the observations field and will check the item for not allow edits, skip and lock.

    Maybe I am missing some step. I added the form with the subform to the Tab/Page and then removed the fields in the form leaving the subform. Alternately I tried adding only the subform but had the same problem. I'm not sure where I would set the Master/Child Links properties for the form/subform. Where do I set this? I need to filter records like the records were filtered for the Tab/Page "Alert-DSN" but not sure how to get there. Any help would be appreciated.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Select the subform container control and set its Master/Child Links properties, same as done for Alert-DSN.
    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
    Duncan Pucher is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Jun 2019
    Location
    Bellevue, WA
    Posts
    49
    June,

    I found the container control and set to Master/Child Links and it worked great!

    Thank you,

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

Similar Threads

  1. Sort subform records on a main form
    By vazdajic in forum Access
    Replies: 5
    Last Post: 01-24-2018, 04:44 AM
  2. Replies: 2
    Last Post: 02-04-2016, 08:13 AM
  3. Subform not gathering all records from Main Form
    By compstudent in forum Access
    Replies: 1
    Last Post: 03-05-2015, 01:07 PM
  4. Replies: 3
    Last Post: 06-02-2012, 07:39 PM
  5. Replies: 0
    Last Post: 07-26-2010, 04:36 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