Results 1 to 2 of 2
  1. #1
    BatmanMR287 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Jan 2014
    Posts
    69

    Date select from form.

    I have a query that checks the dates on policies to see of they are five years old or more.


    <DateAdd("yyyy",-5,Date())
    It works great. But, they want to be able to input the date to look backwards from instead of taking that current days date.
    I tried <DateAdd("yyyy",-5,[Forms]![name of form]![text0])) and it didn't like it.
    Any ideas?

  2. #2
    BatmanMR287 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Jan 2014
    Posts
    69
    Got it.
    <DateAdd("yyyy",-5,[Forms]![name of form]![text0])
    works great.

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

Similar Threads

  1. Replies: 4
    Last Post: 05-28-2014, 10:09 AM
  2. Replies: 28
    Last Post: 11-16-2013, 06:41 PM
  3. Replies: 1
    Last Post: 05-09-2013, 09:13 AM
  4. Select Date Range
    By dr4ke in forum Queries
    Replies: 8
    Last Post: 06-25-2012, 07:04 AM
  5. Using form combo box in query to select date.
    By LordNecro in forum Access
    Replies: 2
    Last Post: 04-14-2012, 05:09 AM

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