473,387 Members | 1,365 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Monthly Cumulative Reports

Hello from Nova Scotia Canada.

Hi there, Im struggling a bit here and I thought I might seek out some advice. Nice to meet you all.

My situation is that im running a database that records events related to the manufacturing process in our company. Everytime a specific event is logged, there is a date mm/dd/yyyy associated with that. What I'm trying to do is do a monthly report that counts the number of individual events within a given month, groups them together (ie: February), then shows a bar chart showing the number of occurances per month.

I will use a date peramater so they decide how many months are to show up on the report. The trouble is that I dont know how to group the dates into months, then report monthly.

Any advice?

Thanks,

Steve
Oct 17 '07 #1
1 2503
MMcCarthy
14,534 Expert Mod 8TB
Hi Steve

To get the Month number of a date you can use the Month() Function.

Month([DateField])

To get the Month name use MonthName()

You can then count the result. Your query would be something like...

Expand|Select|Wrap|Line Numbers
  1. SELECT EventName, MonthName([DateField]), Count([DateField) As NumEvents
  2. FROM TableName
  3. GROUP BY EventName, MonthName([DateField]);
  4.  
Oct 17 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Matt Larkin | last post by:
I am pulling my hair out trying to solve this one (presumably because I am not particularly trained or skilled at access!) I have a query which summarises the variances that each of my sales...
0
by: tcread | last post by:
OBJECTIVE I'd like to be able to query the cumulative monthly returns of a given stock based on the daily returns. I need to do this for 1000 securities over 5 years (60 months) TABLES...
4
by: cefrancke | last post by:
Are there any ways to speed up a Cumulative sum in a query or perhaps another faster way to have a cumulative sum column (call a vba function?). For example, I want to sum up all values under...
1
by: LCK | last post by:
Hi, I'd appreciate if you could help me to perform the following calculations: I Begin with two Tables: Table1 Period InitialStock 12/2005 100
0
by: James Hallam | last post by:
I have searched through the news groups and found many threads close to what I want but cannot get any of them to work... I have a table with expenses and invoices, what I want is a bar chart...
9
by: MikeSA | last post by:
Hi I a trying to create a chart that reflects monthly cumulative totals from a query. The query fields show sales opportunities forecasted invoice date (OppForInvDate), Opportunity Description and...
1
by: cbellew | last post by:
Hi guys, i'm looking to create a report with a table showing totals (running and cumulative) of education sessions attend by the staff at a hospital. I'm trying to get the table to show something...
0
by: FMS Development Team | last post by:
Hi Everyone, I just published a paper with a sample database describing how to create a monthly summary report without VBA code. Basically, a financial crosstab showing 12 months of summaries...
4
by: JAG | last post by:
The following line of code worked in my .hta prior to installing MS08-045 - Cumulative Security Update for Internet Explorer (953838) (on both XP and W2K): window.top.frames.location = ; After...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.