Steve-vfp9user
Programmer
Hello
I am using VFP9 SP2.
There is a single field within my table called YESORNO
I am using the following code in an attempt to only print single page reports when the condition is satisfied which works when I preview the report but only prints the first record if I change the command to print:
There are three records satisfying the condition in the table.
I've checked out the help file and used WHILE, NEXT etc but everything works in PREVIEW mode but not in print.
What am I doing wrong guys?
Thank you
Steve
I am using VFP9 SP2.
There is a single field within my table called YESORNO
I am using the following code in an attempt to only print single page reports when the condition is satisfied which works when I preview the report but only prints the first record if I change the command to print:
Code:
SCAN
mthisrec=0
mthisrec=RECNO()
IF YESORNO="N"
REPORT FORM singlepagereport NOCONSOLE PREVIEW FOR RECNO()=mthisrec && THIS WORKS AND SHOW A PAGE PER RECORD
* REPORT FORM singlepagereport NOCONSOLE TO PRINTER FOR RECNO()=mthisrec && THIS DOESN'T WORK AND ONLY PRINTS THE RECORD
ENDIF
ENDSCAN
There are three records satisfying the condition in the table.
I've checked out the help file and used WHILE, NEXT etc but everything works in PREVIEW mode but not in print.
What am I doing wrong guys?
Thank you
Steve