C
Chrisso
Hi All
I have one form with a command button. When this command button is
clicked I open another form - I then want to change some of the
controls on this form from the code of the starting form:
DoCmd.OpenForm "cFrmDocFullDetails" '
launch form
' now set the required fields backgrounf colour to pale yellow:
' argh! dont know how to access this form
How do I access the controls on one form from the code module of
another? I cannot work out how to get a handle on the form that I jsut
opened. Can I loop through all the forms or something? Can I straight
instantiate an object that is the form?
I have another similar question - when I open the form why cant I do
something like this:
ThisDatabase.cFrmDocFullDetails.Show
or something similar. Is coding of this type possible?
Any help would be great.
Thanks
Chrisso
I have one form with a command button. When this command button is
clicked I open another form - I then want to change some of the
controls on this form from the code of the starting form:
DoCmd.OpenForm "cFrmDocFullDetails" '
launch form
' now set the required fields backgrounf colour to pale yellow:
' argh! dont know how to access this form
How do I access the controls on one form from the code module of
another? I cannot work out how to get a handle on the form that I jsut
opened. Can I loop through all the forms or something? Can I straight
instantiate an object that is the form?
I have another similar question - when I open the form why cant I do
something like this:
ThisDatabase.cFrmDocFullDetails.Show
or something similar. Is coding of this type possible?
Any help would be great.
Thanks
Chrisso