Results 1 to 3 of 3
  1. #1
    Khalil Handal is offline Competent Performer
    Windows 10 Access 2010 32bit
    Join Date
    Jun 2016
    Posts
    243

    Validation rule

    Hi to all.


    I have field for years, field Size is Integer and Format is General Number.
    Can I have a validation rule to prevent a user from entering a year greater than the current year on a table level?

    Thanks
    Khalil

  2. #2
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,115
    Use <=Year(Date()) in your validation rule.

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  3. #3
    Khalil Handal is offline Competent Performer
    Windows 10 Access 2010 32bit
    Join Date
    Jun 2016
    Posts
    243
    Thank you very much.
    A success
    Khalil

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

Similar Threads

  1. Validation rule
    By slimjen in forum Access
    Replies: 10
    Last Post: 07-24-2019, 05:40 PM
  2. Replies: 4
    Last Post: 12-05-2017, 03:31 PM
  3. Replies: 2
    Last Post: 06-16-2015, 03:52 AM
  4. Validation Rule
    By ritzzy in forum Access
    Replies: 1
    Last Post: 04-13-2011, 01:33 PM
  5. Validation Rule
    By Christopher in forum Forms
    Replies: 15
    Last Post: 04-20-2010, 06:05 AM

Tags for this Thread

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