A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

wish to tabulate service counts as monthly totals per employee



 
 
Thread Tools Display Modes
  #1  
Old October 1st, 2009, 07:04 PM posted to microsoft.public.access.gettingstarted
rocky
external usenet poster
 
Posts: 91
Default wish to tabulate service counts as monthly totals per employee

This is probably so easy, I'm going to be embarressed to post... but I'm
going around in circles and not getting anywhere. Thanks if you can help.

Here's the data I have in my linked CSV file
ServiceCode (this is number which could be counted)
Begin Date (date which I should be able to group by month)
Emp #
EmpName

So the end result of having a report which shows each empolyee per page with
Months as column headers and total counts beneath.

Thanks for any pointers you may be willing to share.


--
Rocky''''''''s Curious Coding
  #2  
Old October 1st, 2009, 07:57 PM posted to microsoft.public.access.gettingstarted
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default wish to tabulate service counts as monthly totals per employee

Try this --
TRANSFORM Count([ServiceCode]) AS CountOfServiceCode
SELECT EmpName
FROM [Linked CSV]
GROUP BY EmpName
PIVOT Format([Begin Date], "yyyy mm");

--
Build a little, test a little.


"Rocky" wrote:

This is probably so easy, I'm going to be embarressed to post... but I'm
going around in circles and not getting anywhere. Thanks if you can help.

Here's the data I have in my linked CSV file
ServiceCode (this is number which could be counted)
Begin Date (date which I should be able to group by month)
Emp #
EmpName

So the end result of having a report which shows each empolyee per page with
Months as column headers and total counts beneath.

Thanks for any pointers you may be willing to share.


--
Rocky''''''''s Curious Coding

  #3  
Old October 1st, 2009, 11:23 PM posted to microsoft.public.access.gettingstarted
rocky
external usenet poster
 
Posts: 91
Default wish to tabulate service counts as monthly totals per employee

Karl,
Thanks a million. That worked like a charm. I REALLY APPRECIATE IT!
Hopefully one day I'll get proficient enough to help others here.
--
Rocky''''''''s Curious Coding
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:08 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.