Results 1 to 2 of 2
  1. #1
    justauser is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2012
    Posts
    15

    Querying between two dates for one record in the previous month.


    I am trying to query records that occurred in the previous month that also falls within a range of dates. I was pulling records that occurred in the previous month but I think I'm missing records. I was wondering if I can write and expression that will pull only in the previous month and that date occurred within the two dates. For example, if the start date is 01/31/2012 and the end date is 02/01/2012, it would pull that record because it was being processed during the previous month. I have tried to write the expression like this, but not having much success.
    Code:
    Month(Between[Table]![Date1]and[Table]![Date2])

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 8
    Last Post: 07-06-2013, 05:13 PM
  2. Replies: 3
    Last Post: 11-23-2011, 12:25 AM
  3. Querying for the last record of a table
    By Reaper in forum Queries
    Replies: 7
    Last Post: 11-04-2011, 04:27 PM
  4. Automatically show previous dates.
    By mbonning in forum Access
    Replies: 6
    Last Post: 09-12-2011, 12:12 PM
  5. Replies: 2
    Last Post: 02-04-2011, 08:27 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