Results 1 to 3 of 3
  1. #1
    MBlondinde is offline Novice
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2014
    Posts
    4

    Continuous form - Save all changes to all record at once (wait 'til the end)

    Hello.

    I have a continuous form where the user select an entry using a combobox. Upon selection, detail records are displayed in the detail section. The user can change some values and also add new record. I would like to be able to wait before saving the data back to the database (SQL Server) by forcing the user clicking on a Save button so I can perform global validation. I do not want the save to take place as soon as the user select the next detail record. As an example, the sum of quantities should be equals to a standard value as per the initial combobox selection so I must validate all records together before I can save.
    How can I achieve this?



    Any help would be appreciated.
    Thanks.

    M.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    Can't with bound form. Normally. There is a process called "Transactions" that could be invoked. If a condition is not met then every thing done since the "Transaction" started would be automatically undone. Gets complicated.
    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
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    A continuous form is line by line ; meaning that there is no such thing as 'wait til the end' in the human sense. Each line/row has it's end and that's it. You will need to trigger your check at the end of each line/row - if your goal is to undo it. After the cursor has moved on to the next row - the prior row is written and there is no memory of any prior data values in the prior row.

    You could apply a flag, checkbox, to a newly added/edited row; and then when the form closes use this flag to identify these rows and then apply some logic against them to perhaps provide a message to the user (and then clear those flags) - - - but you could not undo or return to prior values per se...

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

Similar Threads

  1. More than One Record on filtered Continuous Form
    By Williams485 in forum Forms
    Replies: 3
    Last Post: 03-13-2013, 04:56 AM
  2. Replies: 3
    Last Post: 10-12-2012, 01:38 PM
  3. Replies: 3
    Last Post: 10-08-2012, 08:40 AM
  4. Hiding a new record in a continuous form
    By system243trd in forum Forms
    Replies: 3
    Last Post: 12-03-2011, 01:04 AM
  5. Get position of record in continuous form
    By Whizbang in forum Forms
    Replies: 3
    Last Post: 11-02-2011, 01:47 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