>Hello everyone!
>Here I'm experiencing a terrible situation. I have a main form and trying to run another form which is actually formset by simply pushing a command button, and click event has just a classic DO FORM mr.
>FormSet.Name is frmSetMedia has a form frmMedia. The question is ? How I can make a refference to frmMedia.txtText.Value.
>
>I was trying
>
>mr.frmMedia.txtText.value
>frmSetmedia.frmMedia.txtText.Value
>
>It does not work and gives me an error - object does not exist or something. Does anyone know what is happening?
There two error-proof ways to reference tables:
1) Any time you want to make a reference you go through Forms() collection of _SCREEN, i.e.
For n=1 to _screen.formcount
if _screen.forms(n).name=="MYFORMNAME"
oRef=_screen.forms(n)
exit
endif
Endfor
2) You link the form with specific property with trustworthy scope
DO FORM myform1 NAME oApp.Myform1 LINKED
Now you can always make reference by oApp.Myform1.Text1....
Edward Pikman
Independent Consultant