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 / Queries / July 2006

Tip: Looking for answers? Try searching our database.

help with crosstab query

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
pedro - 25 Jul 2006 04:34 GMT
Hi,

I am constructing a crosstab query using the crosstab wizard and I want to
get customer payments by year. However, I do not want the results displayed
by calander year, rather by billing year. (In this case from 1 July to 30
June).

Can I alter the SQL syntax to reflect the billing year?

thanks,

Pedro
Allen Browne - 25 Jul 2006 04:53 GMT
Create the crosstab based on the year of the date.

Now where you see:
   Year([MyDate])
replace it with
   Year(DateAdd("m",-6, [MyDate]))

The column with now show 2005 for all the data between 1 July 2005 to 30
June 2006.

Signature

Allen Browne - Microsoft MVP.  Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

> I am constructing a crosstab query using the crosstab wizard and I want to
> get customer payments by year. However, I do not want the results
[quoted text clipped - 7 lines]
>
> Pedro
 
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.