Glad you got it working. Thanks for telling us how you did it.
>It's been a while since fox had gone weird on me, it got solved like this:
>
>PRIVATE pcPeriodo
>pcPeriodo = oApp.GetPeriodoActivo()
>REPO FORM NOMINA FOR cAnio + cPeriodo = pcPeriodo PREV
>
>My method was probably returning an .f. and screwing things up, I guess the thing is why would it? after working in the preview, the "Report contains a nesting error" message remains a mystery to me, looking at the help topic for this message I get:
>
>"A user-defined function in a report form has called REPORT FORM."
>
>(this occured after hitting the print button on the preview) Can you believe the nerve on this thing, blaming it on a UDF. well It works now, with the private data session, regular tables, and the FOR clause, go figure, Ijust hope it doesn't go crazy on me again or I'll definetly have to use cursors, thanks