Re:QR2 Exit stage right
Dennis/
I have taken your advice and moved the create out of the try..finally
block. I had previously been advised to put it in the try block (for
forms in any case).
I still have the problem though, the following code shows what I do -
Load the fmCHPrintout form from which a button is pressed which loads
the quickreport. When this report finishes control does not pass back
to fmCHPrintOut but to its 'parent' from whence it was created:
fmPrintOut:=TfmPrintOut.Create (Application);
Try
fmPrintOut.showmodal; // show selection including Print Report
finally
fmPrintOut.Free;
end; . . .
// Print Report
fmQRContactInstrctn:=TfmQRContactInstrctn.Create (Application);
Try
fmQRContactInstrctn.QuickRep1.Preview
finally
fmQRContactInstrctn.Free; // frees fmCHPrintOut too (or at least
// makes it invisible and pass control back to its parent.
end;
Is this not specific enough? All my forms have Visible=False.
Pat Bell
Using Virtual Access
http://www.vamail.com