+ Reply to Thread
Results 1 to 2 of 2

i don't like how a form automatically updates, any way to add a "submit"

  1. #1
    Forum Contributor
    Join Date
    03-12-2004
    Posts
    147

    i don't like how a form automatically updates, any way to add a "submit"

    I don't like how the fields on a form are automatically overwritten, is there a way to add a "submit" button that processes the update all at once?

  2. #2
    Registered User
    Join Date
    03-20-2008
    Location
    Buffalo, NY USA
    Posts
    43

    Re: i don't like how a form automatically updates, any way to add a "submit"

    The data is changed on the form, but it hasn't offically been written/committed to the table until you leave the entire record (either scroll forward/backward or force a save). So even though it doesn't appear that way, the entire change is still pending field to field. As a result, you could add an Undo button to your form (as well as a Save button so the user could manually commit the data). These buttons exist in the wizards, but if you don't have them:

    The underlying code for undo (which is triggered on the button's click event is:
    DoCmd.DoMenuItem acFormBar, acEditMenu, acUndo, , acMenuVer70

    Save is:
    DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70

    There are other options, such as having an unbound form and manually loading the data, then forcing the user to click save and, through code, committing that data back to the table. These can get a little tricky if you're inexperienced in Access VBA.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1