Results 1 to 4 of 4
  1. #1
    computersnack is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2014
    Posts
    6

    Access form to auto submit after entering 1 character

    I have a text field that is 1 character long, on a form in Data Entry mode. I would like it to automatically "hit enter" or similar action so it inserts a new record after the user types in a single character. The purpose of this is for use with multiple barcode scanners, hence the single character. Normally I would type in the character and hit enter to add data to the table, but I would like it to auto-submit. How can this be done? Thank you in advance.

  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,963
    Do you mean just want the new record saved? Record is committed to table when form closes, or move to another record, or run code. If those are not sufficient, only way I can imagine to do what you describe is with KeyDown or KeyUp or KeyPress or Change event of textbox.
    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
    computersnack is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2014
    Posts
    6
    Yes, I just want the new record saved after a single character is entered.

  4. #4
    computersnack is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2014
    Posts
    6
    I found my answer on another forum. Using the onChange event, and running this command works for me. DoCmd.GoToRecord , , acNewRec

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

Similar Threads

  1. Replies: 15
    Last Post: 01-13-2014, 11:54 AM
  2. Submit and retrieve data in a form
    By Bertrand82 in forum Import/Export Data
    Replies: 1
    Last Post: 10-05-2012, 11:44 AM
  3. Submit Button In Form
    By smarty84handsome in forum Forms
    Replies: 3
    Last Post: 01-12-2012, 11:17 PM
  4. Replies: 1
    Last Post: 08-17-2011, 11:13 AM
  5. Submit button in access form
    By Melo in forum Forms
    Replies: 2
    Last Post: 09-25-2010, 08:37 AM

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