Results 1 to 6 of 6
  1. #1
    LGrossman is offline Novice
    Windows 10 Office 365
    Join Date
    Mar 2021
    Posts
    17

    Prevent moving off the current record on a continuous form until it is saved

    Hi all,

    I have a continuous form and I want to stop someone clicking/moving to any of the other records displayed until the one they're in is saved.

    Several of the fields in the record update another table on save and I want to stop people moving off the record they started until the update has been performed.

    I hope that makes sense, any help would be appreciated.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,913
    How do "several of the fields" update another table? Record is committed to table when moving to another record.
    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. #3
    LGrossman is offline Novice
    Windows 10 Office 365
    Join Date
    Mar 2021
    Posts
    17
    I use an update query to update the table when the user clicks the 'Save' Button.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,913
    So do you have command to save record? Are users even able to move to another record before code completes execution?
    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.

  5. #5
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,798
    Are these form controls bound to fields in a table or query? If they are, then as June7 says, you don't need a save button. If they're not, why use unbound controls and code, which only makes your job harder?
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  6. #6
    LGrossman is offline Novice
    Windows 10 Office 365
    Join Date
    Mar 2021
    Posts
    17
    You're both right, I have sorted it now without a Save button using the 'Afterupdate' event in the control.

    Thanks all.

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

Similar Threads

  1. Moving to record on a continuous sub-form
    By tonez90 in forum Access
    Replies: 4
    Last Post: 09-11-2017, 04:46 PM
  2. Replies: 1
    Last Post: 10-12-2013, 05:39 PM
  3. Replies: 3
    Last Post: 09-19-2012, 07:34 AM
  4. No Current Record error - Continuous Form
    By tylerg11 in forum Forms
    Replies: 3
    Last Post: 08-25-2012, 08:43 AM
  5. VBA delete current record continuous form
    By tylerg11 in forum Forms
    Replies: 3
    Last Post: 02-17-2012, 12:57 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