Ensure Date Entered is >= 5 Years in the Future

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mcupito
    Contributor
    • Aug 2013
    • 294

    Ensure Date Entered is >= 5 Years in the Future

    Hello, everyone.

    I've a form where users are entering data, and one of the fields is an election date, where the date the user enters must be >= 5 years in the future. I am not sure how access accomplishes this.

    I thought of a validation rule where [ElectionDate] >= DateAdd("yyyy", 5, Date())

    However that did not work. Anyone have any ideas?

    Thanks.
  • Seth Schrock
    Recognized Expert Specialist
    • Dec 2010
    • 2965

    #2
    A validation rule should work. Try entering just >= DateAdd("yyyy", 5, Date()). Here is a link that discusses validation rules: Allen Browne Validation Rules

    Comment

    • mcupito
      Contributor
      • Aug 2013
      • 294

      #3
      Ah, thanks! I was adding the Field in the Validation Rule.

      Cheers, Seth!

      Comment

      Working...