>Can't seem to get this one to work. I created 2 variables julTotal and julPrior for July. julTotal sums jul and prints OK in the group footer. julPrior is initialized at 0 and is not reset. Tried _vfp.SetVar('julPrior',julTotal) in all the onentry and onexit values but all I ever get for its value is 0 or the total for the current detail band.
Let's try to create julPrior not as a variable in the report, but as a local (or private) variable in the calling program. Or you may try to create this variable as public in report's DE Init method and release it in its Destroy. I think it should work this way instead of using report variable.
Also note, that I'm trying this theoretically, without VFP close by.
If it's not broken, fix it until it is.
My Blog