Results 1 to 3 of 3
  1. #1
    snorkyller is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2011
    Posts
    16

    Custom validation error message

    I have a date field, and I want to customize the error message that appears if the user enter a value that is not a date.



    I know how to do it using the BeforeUpdate event, or the ValidationText and ValidationRule properties.

    But the default access error message still appears just before mine ("invalid data value for this field"). Is it possible to disable it?

  2. #2
    Join Date
    Jan 2011
    Posts
    10
    Hide the field. Place an unbound field with no built-in Validation (like format, etc) On After update, test the content for validity in VBA, if valid, place in the hidden field. If not valid, display your custom error message.

    Just a question, why not just use the date picker or an input mask?

  3. #3
    snorkyller is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2011
    Posts
    16
    Quote Originally Posted by eric.opperman1@gmail.com View Post
    Hide the field. Place an unbound field with no built-in Validation (like format, etc) On After update, test the content for validity in VBA, if valid, place in the hidden field. If not valid, display your custom error message.

    Just a question, why not just use the date picker or an input mask?
    I'm already using the date picker, you still can change the date thereafter by an invalid one. I haven't thought about using an input mask with the date picker. Maybe it would work. If not, I will use your other nice idea.

    Thank you

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

Similar Threads

  1. Custom error message problem
    By thekruser in forum Programming
    Replies: 10
    Last Post: 10-06-2010, 05:14 PM
  2. Data validation warning vs error
    By mafrank101 in forum Access
    Replies: 3
    Last Post: 07-14-2010, 05:05 PM
  3. error message
    By ngeng4 in forum Forms
    Replies: 85
    Last Post: 03-25-2010, 06:47 AM
  4. Print custom date for data validation
    By TheFuzzball in forum Database Design
    Replies: 2
    Last Post: 10-26-2009, 06:48 AM
  5. Creating a *Good* Custom Message Box
    By Jerimiah33 in forum Forms
    Replies: 1
    Last Post: 11-09-2005, 04:47 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