P
Pendragon
[Access 03]
I have a form with two combo boxes (cboCompany, cboContact) that are
prefilled based on selections from a superior form. There are two text boxes
corresponding to these combo boxes for the user to enter alternate names for
both Company and Contact. I would like these to default to the values in the
combo boxes.
On my Form Open property I have the following code. My error message is
either "You can't assign a value to this object" or "The object or property
doesn't support this method." I have varied the code to try .Value,
..DefaultValue as well as other more grasping (and less logical) options.
Seems like a fairly simple thing - can anyone help?
The form name is frmExhibitor
cboCompany has data fields of CompanyID, CompanyName, ContactID and
ContactFullName
Me.txtAltCompanyName.Value = Forms![frmExhibitors]!cboCompany.[Column(1)]
Me.txtAltContactFullName.Value = Forms![frmExhibitors]!cboCompany.[Column(3)]
(The prefill functions for cboCompany and cboContact work just fine - it's
the alternate information that I can't get to autocomplete.)
Any help is appreciated!
I have a form with two combo boxes (cboCompany, cboContact) that are
prefilled based on selections from a superior form. There are two text boxes
corresponding to these combo boxes for the user to enter alternate names for
both Company and Contact. I would like these to default to the values in the
combo boxes.
On my Form Open property I have the following code. My error message is
either "You can't assign a value to this object" or "The object or property
doesn't support this method." I have varied the code to try .Value,
..DefaultValue as well as other more grasping (and less logical) options.
Seems like a fairly simple thing - can anyone help?
The form name is frmExhibitor
cboCompany has data fields of CompanyID, CompanyName, ContactID and
ContactFullName
Me.txtAltCompanyName.Value = Forms![frmExhibitors]!cboCompany.[Column(1)]
Me.txtAltContactFullName.Value = Forms![frmExhibitors]!cboCompany.[Column(3)]
(The prefill functions for cboCompany and cboContact work just fine - it's
the alternate information that I can't get to autocomplete.)
Any help is appreciated!