I have created a form, frmContacts, which is used to enter contact names and details.
One entry box is a Combo which fills in the contact's Agent and their details (AgentKnownAs, AgentSurname, AgentFirmID, AgentMobile) from a separate table. Note, the primary key, AgentPersonID (an autonumber) is not used
However, when I look at tblContacts I find AgentSurname, AgentFirmID, and AgentMobile are correctly posted. However the AgentPersonID, a number, appears in AgentKnownAs, and the AgentPersonID field is blank.
Why, and how do I correct this?
The coding from the wizard is: Private Sub cboAgent_Change()
Me.txtAgentSurname.Value = Me.cboAgent.Column(2)
Me.txtAgentFirmID.Value = Me.cboAgent.Column(3)
Me.txtAgentMobile.Value = Me.cboAgent.Column(4)
End Sub
Richard