>Oops! Sorry, Bruce... got my wires crossed. And right you are again. Although the button says "print", click fires the method oApp.reportmgr.rptprint() and that method does the REPORT FORM myreport. Seems like _screen.myform.myprop should be visible to the report, but causes the error "unknown member myform".
>Hopefully there is a scoping solution without using globals. I could go off into oApp.reportmgr and add some rather generic properties. But report objects (i.e. special titles, selection criteria, etc.) should reasonably originate with the form and scope to the report, IMHO.
A couple ideas;
1) try referring to _screen.activeform (assuming it's active)
2) launch myform as an object of oApp so it can be referenced, that is create a property (can be array) something like:
oApp.Myform
then launch myform either way:
a) Do Form myform NAME oApp.Myform
b) oApp.Myform = createobject('myform')
Now myform will be aware of oApp (and vice versa)...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.