Hey, Pete, thank you for your rapid response.
U wrote: you could use
txtGrand.Value = DSum("Money","QryName")
I can't do this because a project ID changes for each detail line.
U wrote: otherwise you could use
=Sum([Money])
as the txtGrand's control source.
I assume that you meant...
A report's Grand Total (txtGrand below) displays correctly in Print Preview. However, it is incorrect when Printed.
The Detail field (txtMoney) is derived from a query (because the report is too complex for only one query). Therefore, the Grand Total is accumulated in code in the variable...
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.