Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 168761
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T12:30:37+00:00 2026-05-11T12:30:37+00:00

I have a set of Access d/b’s grouped already by year. within a given

  • 0

I have a set of Access d/b’s grouped already by year. within a given year, I have a field caleld REPORTDATE which is a standard mm/dd/yyyy field. However, I need to produce queries that return data by the month. For example, I just want to see records for Jan, recs for Feb, Recs for March, etc., so that I can sum them and work wwith thm.

Do I use an expression in the query design view Criteria field?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T12:30:37+00:00Added an answer on May 11, 2026 at 12:30 pm

    I just want to see records for Jan, recs for Feb, Recs for March, etc., so that I can sum them and work wwith thm.

    You can do all of that in one sql statement:

    select month(reportdate), sum( the column you wish to sum ) from tablename group by month(reportdate); 

    BUT WAIT THERE’S MORE!

    Further say that there are several salepersons selling stuff, and you wish to show each salesperson’s sales by month

    select month(reportdate), salesperson, sum( the column you wish to sum ) from tablename group by month(reportdate), salesperson; 

    That shows the sum per month per salesperson.

    You know the Germans always make good stuff!

    What it you wanted to see the same sums, but rtaher than comparing salespeople against each other in each month, you wanted to compare, for each salesperson, how they did from one month to another?

    Just reverse the order of the group by:

    select month(reportdate), saleperson, sum( the column you wish to sum ) from tablename group by salesperson, month(reportdate); 

    Tacos, Fettuccini, Linguini, Martini, Bikini, you’re gonna love my nuts!

    The power of SQL! As seen on TV! Order now!

    ‘select month(reportdate), sum( the column you wish to sum )from tablenamegroup by month(reportdate);’ THIS IS VERY HELPFUL, THANK YOU. AND YOU ARE HILARIOUS. HOWEVER, can you clarify for me where the heck this code goes?! In the expresison Builder or what? Thank you SO much. – rick (19 mins ago)

    In Access, I think from the graphical Query Builder thing’s menu, select edit|SQL, and just type. And never go back to graphical!

    You’re a hard-charging forward-thinking entrepreneurially-minded man on the move! This is not your father’s Oldsmobile! You wouldn’t use an on-screen keyboard to type a document, dragging and dropping letters on the page, would you?! So why do that to build a SQL Query? Get into SQL! AS SEEN ON TV! All the cool kids and hep cats are doin’ it! Order NOW!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a large set of data which I access via a generator/iterator. While
I want to access the role session attribute (which i have set during authentication)
I have set up Team Foundation Server - Team Web Access SP1. I can
I have a set of records in Microsoft Access that I am trying to
I have a set of different interfaces and I need to give them access
I currently have Magento set up on a development server (remote, SSH access) and
I have a instance of Oracle Access Manager set up on Server A and
I have created an MS Access 2003 application, set up as a split front-end/back-end
CGI scripts should have access to a list of environment variables set by the
I have set up several EC2 instances and intend to give multiple users access

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.