Results 1 to 4 of 4
  1. #1
    LostInTheTrees is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Apr 2015
    Location
    Tucson
    Posts
    4

    Force a save after a field is updated in a continuous form?

    I have a continuous form with a checkbox for changing the value of a boolean. If you hit the checkbox, it changes, but because you have not moved to a different field or record, the change has not been saved yet. If you then switch to another form via a tab and then switch back, the form crashes.



    I have an event that runs when the form is activated. The event does a requery. This fails because the boolean field change has still not been saved.

    So, how do I force a save? I can attach a Clicked event to the checkbox and force a save at that point, but I don't know how to invoke the save. None of the obvious possibilities seem to work.

    -Bob

  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,652
    If Me.Dirty Then Me.Dirty = False
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    LostInTheTrees is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Apr 2015
    Location
    Tucson
    Posts
    4
    Quote Originally Posted by pbaldy View Post
    If Me.Dirty Then Me.Dirty = False
    Thanks!

    -Bob

  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,652
    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. Replies: 2
    Last Post: 10-18-2014, 07:20 AM
  2. Replies: 2
    Last Post: 02-12-2013, 12:32 AM
  3. Save the updated data
    By ramindya in forum Access
    Replies: 4
    Last Post: 03-18-2012, 09:14 PM
  4. On Add record, how do I force a Save first?
    By KathyL in forum Programming
    Replies: 11
    Last Post: 07-18-2011, 12:37 PM
  5. Force form not to save updated fields
    By Evgeny in forum Programming
    Replies: 2
    Last Post: 04-30-2010, 10:44 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