Results 1 to 3 of 3
  1. #1
    Shakenaw is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2011
    Posts
    12

    Rolling 12 or 6 Month Query

    I have a date field "yyyy/mm/dd"

    the data is back up til 2009, but i only want to bring a rolling 12 months of data.

    What should my query look like in Access

    I did


    Month()-12

    This gives me an error Message


    Please Help

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    if you're looking for the last 12 months as of the current date it would be

    between dateadd("y", -1, date()) and date()

  3. #3
    Shakenaw is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2011
    Posts
    12
    Thanks I'll try that

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

Similar Threads

  1. Track capacity changes month by month
    By Nils in forum Database Design
    Replies: 1
    Last Post: 02-18-2011, 03:03 PM
  2. Rolling Total in Form
    By foxtrot in forum Forms
    Replies: 2
    Last Post: 01-26-2011, 05:45 AM
  3. Replies: 5
    Last Post: 11-15-2010, 06:12 PM
  4. Rolling 3 Month sums
    By michaeljohnh in forum Reports
    Replies: 1
    Last Post: 11-08-2010, 05:51 AM
  5. SQL Query by day to end of month
    By tcasey in forum Queries
    Replies: 0
    Last Post: 10-07-2008, 09:55 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