Results 1 to 3 of 3
  1. #1
    Matt Parsons is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    2

    Query to find all records after a certain date

    Hello all,



    Apologies if this query seems too simplistic, I am completely new to Access and have no one to ask!

    I have created a database with customers who have accounts with us, and a date field that is the due date to follow up with re-registration. For example, a customer buys a product on a certain date (say 02/07/2011) that lasts a year, the follow up date is then automatically calculated at one year after (02/07/2012). I would like to create a query that shows all customers that the follow up date has now expired. Unfortunately I have no knowledge of the syntax required and have tried the expression builder to no avail.

    I have tried to find solutions on the net and on this forum, it seems like there are no solutions for something this simple!

    Please help!

    Matt

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    if your end date is stored in your computer you just have to have a criteria on that field that is


    <= date() (less than or equal to today's date)

    And it should list all of the clients with expired product.

    If your end date is not stored you would have to do something like this in your purchase date field criteria

    <= dateadd("y",-1, date())

    this basically subtracts a year from the current date and compares it to the purchase date, if the purchase date is less than today's date minus a year it's out of date, if the purchase date is greater than today's date minus a year then it's still valid.

  3. #3
    Matt Parsons is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    2
    Many thanks, that's actually solved 2 problems - bonus! How do I mark this thread as solved?

    Edit - not to worry, found it!

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

Similar Threads

  1. Create a query to find people without particular records
    By Amanda Burlingham in forum Queries
    Replies: 5
    Last Post: 02-17-2011, 10:12 AM
  2. Replies: 6
    Last Post: 02-10-2011, 07:09 AM
  3. How to find missing date query
    By twhite in forum Queries
    Replies: 8
    Last Post: 09-02-2010, 02:42 PM
  4. Query to find latest date
    By Lockrin in forum Access
    Replies: 2
    Last Post: 12-16-2009, 10:00 AM
  5. Find Records Query
    By sullyman in forum Programming
    Replies: 1
    Last Post: 10-28-2009, 08:49 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