Sub-form controls

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: AJ (AJ_at_discussions.microsoft.com)
Date: 02/28/05


Date: Sun, 27 Feb 2005 19:19:01 -0800

I have a master form (frmMaster) with two sub-forms (sfrmDetail1) and
(sfrmDetail2). Both sub-forms are contained in sub-form controls using the
same names as the sub forms.
I would like to populate a textbox (txtLicense) on sfrmDetail2 with the
contents of a textbox (txtOriginalID) on sfrmDetail1. I am having a problems
trying to refer to the appropriate controls. I have tried:
(forms.frmmaster.sfrmDetail2.form!txtlicense =
forms.frmMaster.sfrmDetail2.form!txtOriginalID). I get an error the the
object doesn't support the method or property.
Any help in how to refer to these controls would be appreciated.
Thanks
AJ


Quantcast