>Is there a built in variable or function to determine if the report is running in summary mode so that I can set the Print When function to something like _psummary=.t. ?
>
>Thanks.
Darren,
VFP doesn't have this but you could set something like it up.
The SUMMARY keyword causes VFP to abort execution of anything in the Detail band. If you had something in another part of the report that you wanted to base this on, you could create a variable in the On Enter of the Detail band or you could assign an existing variable a new value. To create or assign a new value to a variable in the On Enter, do the following:
_VFP.DoCmd([luvar="somevalue"])
If the variable didn't exist prior to the report, it will be created as public. If it did, it will remain as private in scope.
Check for the value of that variable in your Print When expression and print appropriately.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao