>Hello Everybody
>
>I have a strange report problem.(VFP9.2)
>
>Form with grid. Rightclick on a row starts a report.(building report cursor and report xxxx to printer prompt preview)
>Everything ok, but:
>When the report has 2 pages and there is only a summery line(at end of group) on page 2(with page header), the report crashes when skipping to the second page.
>Missing variable xyz (xyz is a field from the report cursor)
>
>When starting the report without moving the focus from the grid in the form, the second page is shown correct,
>but when skipping back to the first page in the previev, the report crashes.
>When the focus is set to whatever in the form and then the report is called, the report crashes immediately when skipping to the second page. This error occurs only, when there are no detail records on page 2.
>
>?????????????
>
>Any help welcomed
>Best regards
>Albert
Try creating a separate datasession and call report from it or try moving focus out of the grid.
Check
Forms with Grids and printing reports FAQ #15515
If it's not broken, fix it until it is.
My Blog