Results 1 to 4 of 4
  1. #1
    jabrjo is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Nov 2014
    Posts
    33

    The purpose of the Save Record Command Button

    I have done a bit of searching online and I keep finding different answers. What is the benefit of having a Save Record Button on a form? Access immediately saves every edit I make. I know some people want to click a save button after they enter data but I would rather not have one if there is no benefit.



    Thanks

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Data entry/edit is committed to table when: close form, move to another record, run code.

    Saving with code allows user to commit the record but also remain on that record. There may be circumstances where the record must be committed first before it would be available elsewhere, such as in report output. So if user just entered/edited a record and wants to immediately issue a report, the code would commit the record before executing OpenReport.

    Usually when I have a "Save" button it is in conjunction with some other action: "Save and Close" or "Save and Enter New Record", etc. - in which case you are correct, the SaveRecord command is probably not needed.
    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
    jabrjo is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Nov 2014
    Posts
    33
    Thanks for the helpful response! I am interested in the "Save and Enter New Record" feature. Do you have the code for that command? My save button is currently an embedded macro...whats the best way to switch the current button to a save and enter new record?

    Thanks!

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Possibly just move to new record row.

    DoCmd.GoToRecord , , acNewRec
    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.

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

Similar Threads

  1. Computer accessories record purpose
    By titas in forum Access
    Replies: 2
    Last Post: 01-18-2014, 06:36 AM
  2. do NOT save record on close (x button)
    By benjammin in forum Forms
    Replies: 12
    Last Post: 03-15-2013, 02:54 AM
  3. Replies: 3
    Last Post: 10-08-2012, 08:40 AM
  4. Help Me! Save Record Command Button issue
    By gszdwml in forum Programming
    Replies: 1
    Last Post: 04-24-2012, 09:53 AM
  5. Replies: 4
    Last Post: 07-22-2011, 12:52 PM

Tags for this Thread

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