>I have a form with two tables on date
>
>The two table has a relation
>
>Two grids are on the form and the child_grid obeys the mother_grid
>
>However when I print, all the records of the child_grid are printed, and the relation is not considered
>
>The dataenvironment of the report is empty, I and using since the form
>
>Moises
I don't recall all the issues, but there have been a number of problems when calling reports while a grid has focus. So.......
Make sure you set the focus off either of the grids when you call the report.
Also make sure that the active workarea points to the current table.
somecontrol.setfocus()
SELECT parenttable
REPORT FORM etc