Ross:
Your code should be OK if Callssubform is the name of the subform control on
the parent form, i.e. the control which houses the subform. It would not
work if Callssubform is the name of the underlying form object, i.e. the
source object of the subform control, unless it was also the name of the
subform control. Both can legitimately have the same name, but I always use
different names, prefixing a subform control with sfr and a form object used
as a subform with frmsub.
If you add a subform control to a form from the toolbox Access gives it a
default name such as Child0, Child1 etc., which you can change in the
control's properties sheet.
The full syntax for referencing a control on a subform is:
Forms!NameOfParentForm!NameOfSubformControl.Form!NameOfControlOnSubform
..Form is a reference to the subform's control's Form property, and can be
omitted, though I normally include it for clarity.
If the code is in the parent form's module you can shorten it to:
Me!NameOfSubformControl.Form!NameOfControlOnSubform
If the code is in the module of another subform in the same parent form you
can use the Parent property to refer to the parent form:
Me.Parent!NameOfSubformControl.Form!NameOfControlOnSubform
Ken Sheridan
Stafford, England