Assume a form (myForm)
containing a combobox (cboName).
Also on the form is a tabControl (TabCtrl18)
containing a subForm (sfrmItems) on one of its pages
is a textbox (txtName)
I have successfully set txtName = cboName.Column(1)
when the user clicks on the containing page of the tabControl.
My question is why do I have to fully describe the left side of the "=" but not the right side? Access's syntax with regard to identifying the various controls still often eludes me. Also, the current "Me" is confusing... it seems to refer myForm, but why wouldn't it refer to sfrmItems, since it was that form that contains the control that fired the subroutine.
Here's what works: (it resides in the TabCtrl18_Change subroutine)
Me!sfrmItems.Form.txtName = cboName.Column(1)
Thanks for any light! Also, if you know of a source that describes the intricacies of Access's control referencing syntax that would be SUPER!
containing a combobox (cboName).
Also on the form is a tabControl (TabCtrl18)
containing a subForm (sfrmItems) on one of its pages
is a textbox (txtName)
I have successfully set txtName = cboName.Column(1)
when the user clicks on the containing page of the tabControl.
My question is why do I have to fully describe the left side of the "=" but not the right side? Access's syntax with regard to identifying the various controls still often eludes me. Also, the current "Me" is confusing... it seems to refer myForm, but why wouldn't it refer to sfrmItems, since it was that form that contains the control that fired the subroutine.
Here's what works: (it resides in the TabCtrl18_Change subroutine)
Me!sfrmItems.Form.txtName = cboName.Column(1)
Thanks for any light! Also, if you know of a source that describes the intricacies of Access's control referencing syntax that would be SUPER!