Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Reports / Printing / October 2005

Tip: Looking for answers? Try searching our database.

id's in every month

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bat - 30 Oct 2005 19:47 GMT
hi,
I have a table like this:

id         date           place

and i need a query like  this:

place   january  february   march   .........

which shows me the id's in every month for every place.

thanks
Ofer - 30 Oct 2005 23:12 GMT
What about the year of the month? do you want to sum the id per month?

You need to use a CrossTab Query, but youll need to sum on the id

Try this
TRANSFORM Sum(TableName.Id) AS SumOfId
SELECT TableName.Place
FROM TableName
GROUP BY TableName.Place
PIVOT Format([DateField],"mmm") In
("January","February","March","April","May" ,"June", "July", "August",
"September", "October","November","December")

Signature

If I answered your question, please mark it as an answer. That way, it will
stay saved for a longer time, so other can benifit from it.

Good luck

> hi,
> I have a table like this:
[quoted text clipped - 8 lines]
>
> thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.