Results 1 to 4 of 4
  1. #1
    phbryan is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Mar 2015
    Posts
    6

    Use command button to enter data into field and save record

    Hello,

    In the attached database I have a combo box for Pass/Fail and a command button to save and move to a new record. However, I'd like to combine the two functions and have two command buttons - one for pass and one for fail. When the user clicks either button, the command button should enter the correct value into the table and then save the record. I can't seem to figure out how to combine these two function though.



    Any help would be great!Grinding Spot Check - Copy.zip

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556
    I would just set the control bound to the field and create new record regardless. In doing so, the record would be saved. However, what happens when you do not want the new record?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  3. #3
    phbryan is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Mar 2015
    Posts
    6
    Most of the time I would want to save and move to a new record, but I was thinking of having the command button open up a Yes/No message box asking the user if they want to save the record. If yes save and new record, if no close message box and go back to the form.

  4. #4
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556
    So what about when you want to save but not go to new record?, you have to stop data entry sometime.
    I have entered over 20k records in a db using just 4 combos and tabbing to new record when needed. Data entry is then very quick, but easy to stop when finished. All controls are bound.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

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

Similar Threads

  1. Button to complete a field and save record
    By Davince in forum Forms
    Replies: 4
    Last Post: 01-25-2015, 07:22 AM
  2. Replies: 3
    Last Post: 12-08-2014, 05:35 PM
  3. Replies: 3
    Last Post: 10-04-2013, 06:24 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: 3
    Last Post: 12-17-2011, 02:32 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