Is the subform control name txt_testtype, then use it in the reference. If the txt_testtype is the name of a control on the subform, let's forget it for the time being.
A subform isn't recognized as an open form, it exists as a control on the main form (together with text controls, combo controls...). When referencing subforms, and controls on a subform, one must refer using the subform control name, which may differ from the subform name as viewed in the database window. Here's some info from Microsoft How to refer to a control on a subform or subreport in Access 2000.
If my above suggestion doesn't work, eaasiest way of obtaining the correct subform control name, is to enter a control on the main form, then use the expression builder to doubleclick thru forms, loaded forms, main form, subform and a control on the subform. The resulting reference will contain the correct reference to use...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.