rebeccabarker
Programmer
I have two forms - Plan Form and Employer Form. The plan form has a button that when clicked opens the Employer form for update. From the employer form, the user can change the information on this particular employer (i.e. address, phone number). On the employer form I have a combo box that is linked to my employer table and displays all the possible employers to choose from. (In case the user needs to change the employer associated with this particular plan.)
Here's my problem: If the plan on the plan form currently has an employer associated with it, I want the employer form when opened to display the current employers info. I am using the following code:
'Populate all the fields on the form
Me.cmbEmployer = Forms![Current and Prior Plans Revised Test]![txtEmployer]
Me.txtEIN = Forms![Current and Prior Plans Revised Test]![txtEmpEIN]
Me.txtStreet = Forms![Current and Prior Plans Revised Test]![txtEmpStreet]
Me.txtCity = Forms![Current and Prior Plans Revised Test]![txtEmpCity]
Me.txtState = Forms![Current and Prior Plans Revised Test]![txtEmpState]
Me.txtZip = Forms![Current and Prior Plans Revised Test]![txtEmpZip]
Me.txtPhoneNum = Forms![Current and Prior Plans Revised Test]![txtEmpPhone]
Me.txtFaxNo = Forms![Current and Prior Plans Revised Test]![txtEmpFax]
All of the fields work EXCEPT the combo box. I do not get an error; the combo box is just blank.
Any ideas on what I am missing?
Thanks,
Rebecca
Here's my problem: If the plan on the plan form currently has an employer associated with it, I want the employer form when opened to display the current employers info. I am using the following code:
'Populate all the fields on the form
Me.cmbEmployer = Forms![Current and Prior Plans Revised Test]![txtEmployer]
Me.txtEIN = Forms![Current and Prior Plans Revised Test]![txtEmpEIN]
Me.txtStreet = Forms![Current and Prior Plans Revised Test]![txtEmpStreet]
Me.txtCity = Forms![Current and Prior Plans Revised Test]![txtEmpCity]
Me.txtState = Forms![Current and Prior Plans Revised Test]![txtEmpState]
Me.txtZip = Forms![Current and Prior Plans Revised Test]![txtEmpZip]
Me.txtPhoneNum = Forms![Current and Prior Plans Revised Test]![txtEmpPhone]
Me.txtFaxNo = Forms![Current and Prior Plans Revised Test]![txtEmpFax]
All of the fields work EXCEPT the combo box. I do not get an error; the combo box is just blank.
Any ideas on what I am missing?
Thanks,
Rebecca