I also faced some problems and tried to close some quotes but eventually couldn't solve the last one. See here: http://www.corobori.com/sos/picCrossTab.jpg
Jean-Luc
www.corobori.com
Hi,
I tried the one given by gol4 as I liked the fact of doing in one query. Am I right to say that there is a problem as it seems to divide by the value of the current year instead of the previous year ?
SELECT CLng([Table].[Year]) AS [Year], Table.EmployeeID, Sum(Table.Amount) AS SumOfAmount
FROM Table
GROUP BY CLng([Table].[Year]), Table.EmployeeID;
Somebody suggested me the following and it works:
save this query (in my case QRY1)
now you can use this query
SELECT QRY1.Year...
Robert,
You made my day ! Great idea, it work's just fine.
For those who wants to use it be aware that with print preview you have to let the query modified for printing otherwise it won't work. I just change Robert's code to use only the select part of the query in there was already a WHERE...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.