Results 1 to 5 of 5
  1. #1
    Perfac's Avatar
    Perfac is offline Expert
    Windows 10 Access 2016
    Join Date
    May 2016
    Location
    Centurion Pretoria
    Posts
    618

    Linking Subform1 to Subform2

    1. Main form is f02Journals, and the sub form is f02JournalsSub. Sub form 2 is f02SubAccountSub.
    2. I am trying to add a second Sub form. I have a challenge linking Sub form 2 to Sub form 1.
    3. In the image a field “Coment_IDh” can be seen in sub form 1.
    4. Sub form 2 has a field in the query “Coment_IDs”, not displaying on Sub form 2.
    5. On image 1 a text field can be seen that returns the ID in field “Coment_IDh” to the main form from Sub form 1.
    6. I fail to get a “Master field” to connect to. Image 2.
    7. I added a field “Coment_IDi” to table t02Journals. If an expression that can return the ID in “5” above to this field “Coment_IDi”, I believe it will work for what I want to do.



    Click image for larger version. 

Name:	230308a.png 
Views:	7 
Size:	37.9 KB 
ID:	49846Click image for larger version. 

Name:	230308b.png 
Views:	7 
Size:	13.5 KB 
ID:	49847

  2. #2
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,115
    Name the textbox control you mention in point #5 txtCommentID and enter that (manually) in the Master field.

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  3. #3
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    The guiding principles can be found many places. Here's one that might help for future cases

    https://www.fmsinc.com/microsoftacce...edSubforms.asp
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    Perfac's Avatar
    Perfac is offline Expert
    Windows 10 Access 2016
    Join Date
    May 2016
    Location
    Centurion Pretoria
    Posts
    618
    Thanks Vlad it worked. I thought I did it with the name that was there? I changed the name and now it works. I put a Me. in front of it.

  5. #5
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,115
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

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

Similar Threads

  1. Replies: 7
    Last Post: 08-17-2020, 01:59 PM
  2. excute goto next on subform2
    By newegyptian in forum Forms
    Replies: 5
    Last Post: 10-26-2019, 07:07 AM
  3. Replies: 2
    Last Post: 11-21-2016, 07:44 PM
  4. Replies: 1
    Last Post: 02-27-2014, 01:57 PM
  5. Replies: 0
    Last Post: 03-04-2011, 10:28 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