Results 1 to 3 of 3
  1. #1
    wolfm is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2013
    Posts
    93

    Format date and time query


    I have been using a query to run a report for a date field to show records between 9 days ago and the current date. I have been using criteria: "Between Date() And Date()-9"
    I now have added times to this field. However, now the report only shows records between 9 days ago and yesterday. How do I re-write my criteria to reflect records incorporating both date and time in this field, while showing records for today's date as well? A copy of my query is attached. Thank you!call list query.zip

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 64bit Access 2013
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,538
    Try this:
    Code:
    Between Now() and Date()-9

  3. #3
    wolfm is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2013
    Posts
    93
    It worked! Thank you!

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

Similar Threads

  1. Replies: 3
    Last Post: 08-20-2014, 01:47 PM
  2. Replies: 11
    Last Post: 07-20-2014, 06:22 PM
  3. Form Check Date/Time Format
    By JayRab in forum Forms
    Replies: 7
    Last Post: 02-23-2014, 09:24 PM
  4. Replies: 5
    Last Post: 06-23-2012, 04:30 PM
  5. Replies: 1
    Last Post: 08-07-2011, 07:58 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