Results 1 to 4 of 4
  1. #1
    cbrxxrider is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2013
    Location
    Central NY
    Posts
    16

    form - save entered data only with save button

    I have a form with four combo boxes and a comment box. I made all info necessary or a warning box comes up saying a selection is needed wherever it


    is. (see pic)

    The problem I have is if someone only enters partial info it still enters the record and messes up reports.

    I created a "delete entered data" button for now that just deletes the current record being worked on and refreshes the page but this is only if they think to do so. Is there a way to make the form disregard the entered data unless the save button is pushed?

    Click image for larger version. 

Name:	screen1.jpg 
Views:	20 
Size:	155.0 KB 
ID:	14116

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Use BeforeUpdate event. The event has a Cancel parameter. Check for missing data and offer user option to return to form and complete entry or to abort the 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
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    The easiest way to achieve this is with a Global Variable (Boolean). Only set it True with the Save button and check the variable in the BeforeUpdate event of the form. Either Cancel the update or issue a Me.UnDo if the Variable is not set. Your choice.

  4. #4
    cbrxxrider is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2013
    Location
    Central NY
    Posts
    16
    Quote Originally Posted by RuralGuy View Post
    The easiest way to achieve this is with a Global Variable (Boolean). Only set it True with the Save button and check the variable in the BeforeUpdate event of the form. Either Cancel the update or issue a Me.UnDo if the Variable is not set. Your choice.
    I appreciate the input. I'll look into the "Global Variables".

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

Similar Threads

  1. Can one button Save & Open a New Form?
    By Nate74 in forum Forms
    Replies: 6
    Last Post: 01-17-2013, 05:58 PM
  2. Replies: 3
    Last Post: 10-08-2012, 08:40 AM
  3. Replies: 2
    Last Post: 05-31-2012, 02:41 AM
  4. Replies: 13
    Last Post: 09-14-2011, 07:19 AM
  5. Replies: 9
    Last Post: 01-20-2011, 02:22 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