Results 1 to 4 of 4
  1. #1
    RayMilhon is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,085

    Subform update issue

    I have a main form That saves member demographic information. Then I have a subform that allows the user to enter comments specific to that member. It's a one to many relationship. The issue I'm having is that when one user enters a comment (Fields displayed are comment date and comment text Multiple comments for the same day are allowed) After the record is input the info that was typed in disappears and another comment is displayed. If the member record is changed and then changed back the comment that was displayed is gone and the comment that had been typed in is displayed. I have a temporary fix in that the after update event requeries the data and refreshes. The form this is a temporary fix since when the Requery occurs the focus is set back on the first comment record. This is not a permanent fix because eventually some of these records could have upwards of 30 comments. The user would then have to scroll through all 30. Anyone have an idea how I can resolve this?



    Thanks

  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,643
    Is this appropriate?

    http://www.baldyweb.com/Requery.htm

    or using

    DoCmd.GoToRecord

    specifying the last record?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    RayMilhon is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,085
    Thanks Paul that did the trick

    Added

    Me.Requery
    DoCmd.GotoRecord , , acNewRec

    To the After update event of the form and everything works just like it should. Thanks again.

  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,643
    Happy to help!
    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. Update Query Issue
    By Voodeux2014 in forum Queries
    Replies: 9
    Last Post: 02-18-2015, 12:01 PM
  2. Replies: 1
    Last Post: 11-07-2012, 05:31 PM
  3. Update query issue
    By dastr in forum Queries
    Replies: 1
    Last Post: 03-28-2012, 04:39 AM
  4. Update query issue
    By doomy304 in forum Queries
    Replies: 2
    Last Post: 06-25-2011, 02:31 PM
  5. Update field in table after update on a subform
    By jpkeller55 in forum Queries
    Replies: 3
    Last Post: 09-30-2010, 08:02 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