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

    Help with Update after Error Checking

    I have a form that I want to ensure all relevant fields are completed prior to appending the new dataset to the table.

    Data set update works fine, as does the error checking using:

    IF IsNull(Controlname) Then
    'Error Message
    Else IF
    'Next control check
    End IF



    Form submission is via an "onclick" event of an image rather than a button (trying to make things pretty).

    My problem if someone then updates the field, but doesn't exit or tab out of the field, then my form doesn't know that it has been updated.
    Any ideas on how to either force a "tab" or how to force exit from the field?

    Thanks

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Could set field as required in table design and let Access nag users. They'll eventually learn that entering data avoids error message.

    Can also use control's ValidationRule and ValidationText properties.

    I did a test of editing a field then clicking a command button without first leaving field. The form definitely knows that field has been edited.
    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.

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

Similar Threads

  1. Error checking
    By Me.Howard in forum Access
    Replies: 6
    Last Post: 11-12-2015, 05:36 AM
  2. Error checking
    By Me.Howard in forum Forms
    Replies: 5
    Last Post: 10-15-2015, 04:06 PM
  3. Error Checking in a text box
    By Paul H in forum Forms
    Replies: 2
    Last Post: 07-23-2015, 01:02 PM
  4. Error Checking Boxes
    By CementCarver in forum Access
    Replies: 2
    Last Post: 06-12-2013, 04:27 PM
  5. Update duplicate checking
    By bigderon88 in forum Programming
    Replies: 19
    Last Post: 03-23-2012, 10:45 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