Results 1 to 6 of 6
  1. #1
    dweekley is offline Advanced Beginner
    Windows XP Access 2002 (version 10.0)
    Join Date
    May 2010
    Posts
    52

    Validating form data


    I am attempting to validate the data entered into the form. Blanks, format, etc.

    I am thinking that this needs to be done at BeforeUpdate and UnLoad? If this is true then the VBA should be a function and called up so the VBA is same where ever it is used.

    TIA

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You will not need both BeforeUpdate and UnLoad events. The BeforeUpdate will catch all changes.

  3. #3
    dweekley is offline Advanced Beginner
    Windows XP Access 2002 (version 10.0)
    Join Date
    May 2010
    Posts
    52
    Sweet. One less thing to think about.

    BeforeUpdate happens before the UnLoad. Is there a cheat sheet for the order of events? I found something on Update and insert, but didn't include Unload, Exit.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922

  5. #5
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    If you really are using Access XP (which I have) then while you not looking at code, pressing F1 and searching for Events should give you the same thing.

  6. #6
    dweekley is offline Advanced Beginner
    Windows XP Access 2002 (version 10.0)
    Join Date
    May 2010
    Posts
    52
    Thank you much. Nice. More reading. That should help get my head wrapped around a few things.

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

Similar Threads

  1. Replies: 4
    Last Post: 06-21-2016, 11:49 AM
  2. Validating data against two tables
    By MTSPEER in forum Programming
    Replies: 3
    Last Post: 03-30-2015, 10:48 AM
  3. Validating Data on Form Entry
    By JoeM in forum Access
    Replies: 6
    Last Post: 09-23-2013, 02:13 PM
  4. Microsoft Access - Validating Data
    By eric.kung in forum Access
    Replies: 3
    Last Post: 08-16-2011, 05:32 AM
  5. Validating data entry in a form
    By bdhFS in forum Programming
    Replies: 1
    Last Post: 05-18-2010, 03:09 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