Kamis, 20 November 2014

Re: [MS_AccessPros] Breaking down by month

 

 Thank you. I removed the application id and it worked fine.

With Warm Regards,
 
Arthur D. Lorenzini
IT System Manager
Cheyenne River Housing Authority
Wk.(605)964-4265  Ext. 130
Fax (605)964-1070
"Only those who will risk going too far can possibly find out how far one can go."






From: "John Viescas JohnV@msn.com [MS_Access_Professionals]" <MS_Access_Professionals@yahoogroups.com>
To: MS_Access_Professionals@yahoogroups.com
Sent: Thursday, November 20, 2014 11:09 AM
Subject: Re: [MS_AccessPros] Breaking down by month

 
Art-

You asked for a count by application by month.  If you want just a count by month, do what Darrell suggested.

John Viescas, Author
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications 
SQL Queries for Mere Mortals 
(Paris, France)






On Nov 20, 2014, at 5:50 PM, 'Embrey, Darrell' DEmbrey@bcbsm.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:

Remove ApplicationID from your SELECT and GROUP BY, that will return a count by month.
 
Darrell
 
From: MS_Access_Professionals@yahoogroups.com [mailto:MS_Access_Professionals@yahoogroups.com]
Sent: Thursday, November 20, 2014 11:39 AM
To: MS_Access_Professionals@yahoogroups.com
Subject: Re: [MS_AccessPros] Breaking down by month
 
 
Is there a reason I am getting multiple values per month?
 
Query1
ApplicationID
Expr1
CountByMonth
1313
2013 Dec
1
1314
2013 Dec
1
1315
2013 Nov
1
1321
2013 Dec
1
1322
2013 Dec
1
1347
2013 Nov
1
1348
2013 Nov
1
1349
2013 Nov
1
1350
2013 Nov
1
1351
2014 Jan
1
1352
2014 Jan
1
1353
2014 Jan
1
 
For instance Nov should read
 
1347
2013 Nov
4

With Warm Regards,
 
Arthur D. Lorenzini
IT System Manager
Cheyenne River Housing Authority
Wk.(605)964-4265  Ext. 130
Fax (605)964-1070
"Only those who will risk going too far can possibly find out how far one can go."



 

From: "John Viescas JohnV@msn.com [MS_Access_Professionals]" <MS_Access_Professionals@yahoogroups.com>
To: MS_Access_Professionals@yahoogroups.com
Sent: Thursday, November 20, 2014 10:33 AM
Subject: Re: [MS_AccessPros] Breaking down by month
 
 
Art-
 
SELECT tblApplication.ApplicationID, Format(tblApplication.AppReceivedDate, "yyyy mmm"), Count(tblApplication.ApplicationID) As CountByMonth
FROM tblApplication
WHERE tblApplication.AppReceivedDate >= (Date() - 365)
GROUP BY ApplicationID, Format(AppReceivedDate, "yyyy mmm")
 
John Viescas, Author
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications 
SQL Queries for Mere Mortals 
(Paris, France)
 
 
 
On Nov 20, 2014, at 5:13 PM, dbalorenzini@yahoo.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:
 
 
I have the following query which is pretty basic:
 
SELECT tblApplication.ApplicationID, tblApplication.AppReceivedDate
FROM tblApplication
WHERE (((tblApplication.AppActiveFlag)=True));
 
What I need to do is get a count of applications broken down by months for the last 12 months.
 
Any ideas?
 
Thank you,
Arthur Lorenzini
Sioux Falls, SD
 
 

The information contained in this communication is highly confidential and is intended solely for the use of the individual(s) to whom this communication is directed. If you are not the intended recipient, you are hereby notified that any viewing, copying, disclosure or distribution of this information is prohibited. Please notify the sender, by electronic mail or telephone, of any unintended receipt and delete the original message without making any copies.
Blue Cross Blue Shield of Michigan and Blue Care Network of Michigan are nonprofit corporations and independent licensees of the Blue Cross and Blue Shield Association.



__._,_.___

Posted by: Art Lorenzini <dbalorenzini@yahoo.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (6)

.

__,_._,___

Tidak ada komentar:

Posting Komentar