G
GailK
Acess 2000
In my form, I have an AgentName combo box from which the RowSource =
tblAgentDetails. This tbl contains: AgentName, AgentAlias and LeadAgentName.
Once the AgentName is selected I would like the next control, called
AgentAlias to populate based on the AgentName. I have the Control Source for
the AgentAlias set to AgentAlias in the form.
Having gone through the threads I have tried the AfterUpdate event and
DLookup but I have been unsuccessful. I would appreciate any assistance.
thx
Here are the Event Procedures tried:
Private Sub AgentName_AfterUpdate()
Me![AgentAlias] = Me.AgentName.Column(1)
End Sub
Private Sub AgentName_AfterUpdate()
Me.AgentAlias = DLookup("[AgentName]", "AgentDetails",
"[AgentAliasName]" = Me.AgentName)
End Sub
In my form, I have an AgentName combo box from which the RowSource =
tblAgentDetails. This tbl contains: AgentName, AgentAlias and LeadAgentName.
Once the AgentName is selected I would like the next control, called
AgentAlias to populate based on the AgentName. I have the Control Source for
the AgentAlias set to AgentAlias in the form.
Having gone through the threads I have tried the AfterUpdate event and
DLookup but I have been unsuccessful. I would appreciate any assistance.
thx
Here are the Event Procedures tried:
Private Sub AgentName_AfterUpdate()
Me![AgentAlias] = Me.AgentName.Column(1)
End Sub
Private Sub AgentName_AfterUpdate()
Me.AgentAlias = DLookup("[AgentName]", "AgentDetails",
"[AgentAliasName]" = Me.AgentName)
End Sub