Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2006

    Date Parameter


    I have a query where I need to pull data for the same dates entered within a parameter but for the previous year.

    For example: The parameter asks for a Start Date and End Date. I would enter 06/01/2005 and 06/03/2005 respectively. I want the following query to return the data within the table between 06/01/2004 and 06/03/2004.

    Between Year([Reports]![Carrier By Month]![Text41])-1 And Year([Reports]![Carrier By Month]![Text43])-1

    Currently what this criteria is doing is pulling the data for the previous year as I need but it is returning everything for 2004 that exists within the table. For example I have stuff for 05/01/2004 and it returns this data. I only need it to return the previous year data within the date range I entered within the parameter.

    Any help on this would be greatly appreciated. I have been bursting my brain on this.

  2. #2
    StepUP is offline Advanced Beginner
    Windows 7 64bit Access 2000
    Join Date
    Dec 2005
    Your criteria should work IF you are comparing on the Year of the date and not the date itself. So your query would have the criteria for


    rather than just the field itself.

  3. #3
    Join Date
    Mar 2006
    Thank you for your reply but could you clarify for me a bit more. I am comparing it to only the year value of the date entered within the Report.

    I just don't understand where it is going wrong. Why is it not paying attention to the date range?

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

Similar Threads

  1. Enter Parameter Value
    By plesser in forum Access
    Replies: 1
    Last Post: 11-08-2008, 10:27 AM
  2. Pull Parameter Value from Form
    By dymondjack in forum Queries
    Replies: 1
    Last Post: 02-14-2007, 07:15 PM
  3. Replies: 4
    Last Post: 01-05-2006, 02:36 AM
  4. Add combo box to parameter query
    By louisa14 in forum Queries
    Replies: 1
    Last Post: 12-10-2005, 08:38 AM
  5. Replies: 1
    Last Post: 12-09-2005, 10:29 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