Rabu, 06 Juli 2016

RE: [MS_AccessPros] Re: Counting dates in a month

 

I had a similar situation recently. Here's my sql:

SELECT Year([Date approved]) & "-" & Month([Date approved]) AS [When], Count([RFC Input].[CRF #]) AS ECRs
FROM [RFC Input]
WHERE ((([RFC Input].[Date approved])>#1/1/2015#))
GROUP BY Year([Date approved]) & "-" & Month([Date approved]), Year([Date approved]), Month([Date approved])
ORDER BY Year([Date approved]), Month([Date approved]);

-----Original Message-----
From: MS_Access_Professionals@yahoogroups.com [mailto:MS_Access_Professionals@yahoogroups.com]
Sent: Wednesday, July 06, 2016 8:52 AM
To: MS_Access_Professionals@yahoogroups.com
Subject: Re: [MS_AccessPros] Re: Counting dates in a month

Art-

See if you can get away with changing the Group By and Order By to:

GROUP BY Format([MOVEINDATE], "yyyy mm")

John

Sent from my iPad

> On Jul 6, 2016, at 17:42, Art Lorenzini dbalorenzini@yahoo.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:
>
> GROUP BY Format([MOVEINDATE],"mmmm"" , ""yyyy")

------------------------------------
Posted by: John Viescas <johnv@msn.com>
------------------------------------

------------------------------------

Yahoo Groups Links

This email (and all attachments) is for the sole use of the intended recipient(s) and may contain privileged and/or proprietary information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.

__._,_.___

Posted by: Liz Ravenwood <Liz_Ravenwood@beaerospace.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (7)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


.

__,_._,___

Tidak ada komentar:

Posting Komentar