Hi Nick,
Put a RETURN .F. in the Init.
Hope this helps,
Gavin...
>I have a form that has following code in init procedure:
>
>
>WITH thisform
> .pop_table
> .sum_encum
> report form rp_statrep TO PRINTER prompt preview
>ENDWITH
>return
>
>
>The problem is that I need this form to quit and it still stays on the screen even after I put return at end.
>
>The calling form looks like this
>
>
>if .listindex = 1
> thisform.visible = .f.
> do form frm_statrep
> thisform.visible = .t.
>
>
>I just want to run form to create custom report and then end.
>
>Thanks
>Nick Patel