Results 1 to 2 of 2
  1. #1
    KevinMCB is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2010
    Posts
    29

    Complicated Query needs some date range help

    Hello everyone! I am in need of some assistance.



    The query was built for a report that shows units. These units have 3 states (a status) they can be in. Incoming, Active, or Paid. The report from this query shows the Active units but I recently added the Paid units to it. However, the query should only show the units that were changed to Paid during the month the report is ran. I have two date fields for when the unit was added and when the unit is paid.

    So what I need to do is find a criteria for the paid date field that will show the paid units in the month that I am currently in and not any that are older than a month, but not override the other criterial in my status field. I don't want this to eliminate units that have the Active status.

  2. #2
    KevinMCB is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2010
    Posts
    29
    Figured it out. In my field named [Status] I added onto the current line. It was:

    Like "Active" Or "Paid"

    I then added to it to make the following:

    Like "Active" Or "Paid" And Year([Pdate])=Year(Now()) And Month([Pdate])=Month(Now())

    This line still gives me the Active units, but only shows the paid units for the current month of the current year.

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

Similar Threads

  1. Date Range Failure
    By goodguy in forum Queries
    Replies: 4
    Last Post: 12-30-2010, 10:22 AM
  2. Date range help!!
    By bananatodd in forum Access
    Replies: 26
    Last Post: 10-18-2010, 01:57 PM
  3. Date range query from form
    By Steve Barnes in forum Queries
    Replies: 2
    Last Post: 07-29-2010, 07:06 PM
  4. Query for date range from two column?
    By sunny in forum Queries
    Replies: 2
    Last Post: 07-28-2010, 07:12 AM
  5. Sum of Values over date range
    By bosnian in forum Queries
    Replies: 1
    Last Post: 01-12-2010, 03:41 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