Results 1 to 3 of 3
  1. #1
    herbc0704 is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2010
    Posts
    16

    Grouping info for the last twelve months

    I have a query that gathers sales data based on the invoice date of sales. I need to create a prompt that sums sales for the last tweleve months. The problem I am having is when sales fall in the prior year. I am sure there is an easy way to get this.

  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    Try this:
    >= DateAdd("yyyy", -1, Date())

    Let me know if it works!

  3. #3
    herbc0704 is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2010
    Posts
    16
    Quote Originally Posted by Robeen View Post
    Try this:
    >= DateAdd("yyyy", -1, Date())

    Let me know if it works!
    Thanks it does what I need it to!

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

Similar Threads

  1. Replies: 1
    Last Post: 06-09-2011, 09:15 AM
  2. Counting Months
    By xzero1484 in forum Queries
    Replies: 1
    Last Post: 02-21-2011, 03:49 PM
  3. Replies: 3
    Last Post: 01-31-2011, 11:47 AM
  4. How to show all months
    By Brian62 in forum Queries
    Replies: 4
    Last Post: 10-20-2009, 08:55 AM
  5. A months query
    By Peljo in forum Access
    Replies: 1
    Last Post: 02-18-2008, 09:07 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