Results 1 to 4 of 4
  1. #1
    Russell is offline Novice
    Windows 10 Office 365
    Join Date
    Jan 2023
    Posts
    7

    Form is submitting as soon as field completed.


    I have a couple of submission forms which I am using a "submit" button that runs error checking etc... (2 different forms for 2 different tables in the db)

    One form is behaving perfectly as I would expect, and after completing the last field recycles back through the <tab> order.

    The second form is my problem, if all the fields have text in them - it is autosubmitting and closing the form - and not running the error checking or giving the user a chance to review their input for errors (ie. spelling) before submission.

    For the life of me cant see why they are behaving differently.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Neither can we. We don't know your data relationships, form design, code. If you want to provide db for analysis, follow instructions at bottom of my post.
    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
    Russell is offline Novice
    Windows 10 Office 365
    Join Date
    Jan 2023
    Posts
    7
    Typically.... after pulling my hair out for 2 hours, figured the problem 10 minutes after posting.

    The Form behaving "correctly" was "unbound" to the database table - submission only by vba on_click event.
    I'd created the second form and bound all the fields - so when they were all complete the submission automatically occurred.

  4. #4
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    Well that on it's own would not close the form?
    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. Replies: 4
    Last Post: 02-20-2020, 06:17 AM
  2. Replies: 1
    Last Post: 08-08-2017, 03:14 PM
  3. Replies: 1
    Last Post: 05-24-2017, 02:53 PM
  4. Replies: 6
    Last Post: 11-21-2015, 09:52 AM
  5. Replies: 0
    Last Post: 09-01-2009, 12:33 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