Print Something if no Detail
On a report I have a master band with a detail band - I am printing the master if there is no detail, but I want to print something like "No Detail Recorded" if there are no details to be printed - how can I do that? - the report uses tfrDBDatasets as the source.
Comments
2. Add a "text" object to the child band, write "no detail records" in it
3. In the masterdata.OnBeforePrint event write the following code:
Child1.Visible := <Orders."Order No"> = 0;
where <Orders."Order No"> is a field from detail record that is not 0 if a record exists.