Results 1 to 4 of 4
  1. #1
    gykiang is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Nov 2013
    Posts
    47

    forcing update of subform without close & open form

    Hi

    My subform is linked to the mainform.



    The problem is when I update the linked field (combo) of the main form, the value of related fields of the subform remains unchanged.

    However, changes of these related field values will take place only when I close the form & re-open it.

    Is there anyway I can force a change of the related fields of subform upon update of the key field of main form instead of update field, close form & open form ?

    Thanks for your guidance.

    Regards
    Kiang

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    Have you tried to requery the subform?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    gykiang is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Nov 2013
    Posts
    47
    Thanks for the suggestions.

    I have googled & found the solution by adding .requery to the control field of current form property, all related fields of Subform changed according to my
    update in the main form.

    Regards
    Kiang

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    No problem.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Recordset code forcing focus to remain on subform
    By amkp711 in forum Programming
    Replies: 1
    Last Post: 12-16-2014, 11:55 AM
  2. Replies: 1
    Last Post: 11-07-2012, 05:31 PM
  3. Replies: 1
    Last Post: 05-10-2012, 09:32 AM
  4. Replies: 1
    Last Post: 05-03-2012, 02:25 PM
  5. Open form with subform No Update
    By insane53 in forum Forms
    Replies: 1
    Last Post: 01-06-2012, 02:46 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