help with crosstab query

G

Guest

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
 
A

Allen Browne

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top