>To All and Sundry Greetings:
>
>We have a piece of code which looks like this:
>
> REPORT FORM name1 TO PRINT PROMPT NOCONSOLE
> REPORT FORM name2 TO PRINT NOCONSOLE
>
>When the user presses the
button in response to the PROMPT, the second report still prints. How can I capture the fact that the button was pressed so that I can supress printing the second report.
>
>I am brand new to this group and don't really know my way around it yet. If you could also E-mail any response to me at: RICHLP@WORLDNET.ATT.NET it would be greatly appreciated.
>
>Thanks all.
The idea is to create variable in Report Form 'name1' to store e.g. count of records. Then your code will look like:
nCheck=0
REPORT FORM name1 TO PRINT PROMPT NOCONSOLE
if nCheck<>0 && you really ran report
REPORT FORM name2 TO PRINT NOCONSOLE
endif
Edward Pikman
Independent Consultant