Results 1 to 4 of 4
  1. #1
    grapevine is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2017
    Posts
    22

    Validation rule - completion date must be after the start date

    I am trying to create validation in a table to ensure that when the completion date is entered is is either the same as or after the start date.


    • I have tried >=[PrStDate] but I cannot save the table
    • It will save without the brackets, but I am not sure it is doing the right thing - (sorry no data in to test at the moment)


    Can someone please confirm the correct syntax?

  2. #2
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Have a look here: http://www.bluepecantraining.com/por...another-field/

    Also note that you can place these types of things in VBA code (the BeforeUpdate event of the field) of your entry Form (users should NEVER have direct access to the underlying tables and should only manually enter data through Forms.

  3. #3
    grapevine is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2017
    Posts
    22
    Thank you for that I have located the property sheet and now I can see the field names as well
    Can i just confirm, if i put validation at table level - does it follow through to form and report input as well?
    Many thanks

  4. #4
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Can i just confirm, if i put validation at table level - does it follow through to form and report input as well?
    Yes. The Table is the "base level", so any rules enacted at the Table level will carry over to Queries and Forms (you cannot do data entry on the Report level, so that really doesn't apply).
    Rules are the Form level do not carry over to the Table level (meaning you can get around them by entering data directly into the Table).

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

Similar Threads

  1. Replies: 6
    Last Post: 07-11-2016, 07:38 PM
  2. Replies: 6
    Last Post: 03-02-2016, 12:58 PM
  3. Validation Rule for Date Format
    By selvakumar.arc in forum Forms
    Replies: 3
    Last Post: 03-04-2014, 01:31 PM
  4. Cannot set validation rule on Date/Time type
    By intheflesh77 in forum Access
    Replies: 2
    Last Post: 10-12-2013, 08:57 AM
  5. Validation Rule: Date
    By krymer in forum Access
    Replies: 0
    Last Post: 08-27-2008, 03:30 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