Thank you dhookom! That was just what I needed. I also added
WHERE (((Year([ChangeDate]))=[Enter Year]))
to the first two queries so that I would get the results for only the year of interest.
Based on your suggestions Randy, I ended up with a make-table query for orders, an append query for change orders, and a crosstab query based on the resulting table. I wasn't sure where to put the macro code shown in your FAQ for complex reports, but I managed to do the same thing with a macro...
I am trying to generate a crosstab report for monthly sales grouped by product category that looks like this:
ReportingGroup Jan Feb Mar Apr May Jun ...
Group1 2000 4000
Group2 3050 3000
Group3
Group4 4000 5000 5000 5000 5000 5000
Group5
The...
Actually in a form, you are right, this wouldn't work:
DoCmd.GoToRecord acDataForm, "name of your table", acLast
It should be:
DoCmd.GoToRecord acDataForm, "name of your form", acLast
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.