Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    Quote Originally Posted by June7 View Post
    Still confused. If frmBookingJoining is open why do you show code to open it after code to refresh it?
    I don't need that code, I just thought implementing it would help make it work...
    Quote Originally Posted by June7 View Post
    Close the Search form so record is committed to table then Requery the other form.

    DoCmd.Close
    Form_frmBookingJoining.frmBookingsSubJoin2.Requery

    If this doesn't work I won't be able to help further without reviewing the db.
    That's where I probably went wrong - I had

    DoCmd.Close acForm, "frmBookingJoiningSearch", acSaveYes



    after instead of before...

    Update: that is what it was..... I just needed to put it after acSaveYes... duh me.

    Once again June 7 - big thankyou

  2. #17
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    The acSaveYes has nothing to do with saving the record, it is to save design changes, such as property settings of form or controls changed by code. I usually make sure the acSaveNo parameter is in effect.

    Record is committed to table when form closes (by any method), move to another record, or run code (DoCmd.RunCommand acCmdSaveRecord).
    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. #18
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    Quote Originally Posted by June7 View Post
    The acSaveYes has nothing to do with saving the record, it is to save design changes, such as property settings of form or controls changed by code. I usually make sure the acSaveNo parameter is in effect.

    Record is committed to table when form closes (by any method), move to another record, or run code (DoCmd.RunCommand acCmdSaveRecord).
    noted - I will change it to no.

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

Similar Threads

  1. Requery subform from main form
    By nswhit in forum Forms
    Replies: 7
    Last Post: 05-13-2013, 02:22 PM
  2. Requery Main Form, Keep Focus on Subform
    By burrina in forum Forms
    Replies: 8
    Last Post: 11-21-2012, 03:50 AM
  3. Requery subform after update of main form
    By gemadan96 in forum Forms
    Replies: 3
    Last Post: 10-17-2012, 02:33 PM
  4. Replies: 3
    Last Post: 10-10-2011, 06:33 PM
  5. Replies: 6
    Last Post: 01-13-2010, 02:41 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