Results 1 to 3 of 3
  1. #1
    ripper is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    2

    Query / report per month and year

    Hi all.

    I have a table with 5 fields, one of them is DATE.

    In this table there are all the records regarding what has been sold.



    What I need is a query that does this:

    01.2011 > X items sold
    02.2011 > X items sold
    and so on.

    In the DATE field, data is written in the "short form", so: DD/MM/YYYY (I'm from Switzerland and here the day is before month).

    I wrote this:
    Code:
    SELECT DatePart('m',[Date]) & "." & DatePart('yyyy',[Date]) AS Expr1
    FROM Eseguiti;
    Which is what I want, but now I need to COUNT them!

    Thanks for your help!

  2. #2
    Stingaway is offline Efficiency Junkie
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Location
    The deep south. Keep going until you hit water basically.
    Posts
    224
    Hit the sigma symbol (group symbol) in design view on the query, put a Group by Expr 1 and then put the same expression in the next column but make it a Count.

  3. #3
    ripper is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    2
    Quote Originally Posted by Stingaway View Post
    Hit the sigma symbol (group symbol) in design view on the query, put a Group by Expr 1 and then put the same expression in the next column but make it a Count.
    What can I say?

    THANK YOU!

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

Similar Threads

  1. Sorting by month and day - without year
    By TracyBell in forum Access
    Replies: 3
    Last Post: 11-17-2011, 10:29 AM
  2. Replies: 1
    Last Post: 04-12-2011, 06:45 PM
  3. Replies: 0
    Last Post: 03-25-2011, 02:37 PM
  4. default month and year
    By beefyalby in forum Forms
    Replies: 3
    Last Post: 12-05-2010, 11:40 PM
  5. by year by month
    By nkuebelbeck in forum Reports
    Replies: 21
    Last Post: 03-24-2010, 01:53 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