Results 1 to 4 of 4
  1. #1
    love2waltz is offline Novice
    Windows Vista Access 2003
    Join Date
    May 2012
    Posts
    4

    date criteria

    I would like my form to only accept a date from the current date back to only 90 days in the past. The field name is ProcessDate. I am using a short date in this field. Is there some code I can use to restrict the date to the last 90 days? As always, I appriecate your help, thank you.
    Last edited by June7; 06-05-2014 at 01:21 PM.

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    you can set up a validation rule

    >=Date()-90 And <=Date()

    Then populate the validation text with whatever message you want

    that's probably the simplest way

  3. #3
    love2waltz is offline Novice
    Windows Vista Access 2003
    Join Date
    May 2012
    Posts
    4
    This works great thank you so much....one more question though, how do I turn off the automatic error message. Once the validation text message displays, a system generated message displays. I appreciate your help once again.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,598
    Should not get a second message. I don't. Did not nothing special to prevent. Only set the ValidationText property.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Dum Help with Date criteria
    By Naveen Marapaka in forum Programming
    Replies: 5
    Last Post: 05-03-2014, 11:47 AM
  2. Date criteria using between and form date picker
    By killermonkey in forum Queries
    Replies: 3
    Last Post: 03-21-2013, 12:44 PM
  3. Replies: 3
    Last Post: 08-21-2012, 03:05 PM
  4. >Date() criteria
    By BED in forum Queries
    Replies: 3
    Last Post: 12-15-2010, 03:29 AM
  5. Criteria for date due
    By Desstro in forum Queries
    Replies: 4
    Last Post: 11-30-2010, 12:54 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