G
Guest
I took Ken's advice and looked on his webpage for the above, but have not
been able to get the event procedure to work. Here is the text of my
AfterEvent:
Private Sub FileNumber_AfterUpdate()
Me.txtLastName.Value = Me.cboFileNumber.Column(1)
Me.txtFirstName.Value = Me.cboFileNumber.Column(2)
End Sub
(BTW, I tried the above without the ".Value" as well, still didn't work.)
The combo box is there and displays the values I want it to show, but when I
select the correct fileNumber of the person I wish to choose, it only
displays in the FileNumber field, not in either LastName or FirstName.
I then tried to do it with unbound boxes with the control source listed as
=cboFileNumber.Column(1)
=cboFileNumber.Column(2)
for LastName and FirstName respectively and just get the error message
"#Name?" in the box, no data.
What am I doing wrong?
been able to get the event procedure to work. Here is the text of my
AfterEvent:
Private Sub FileNumber_AfterUpdate()
Me.txtLastName.Value = Me.cboFileNumber.Column(1)
Me.txtFirstName.Value = Me.cboFileNumber.Column(2)
End Sub
(BTW, I tried the above without the ".Value" as well, still didn't work.)
The combo box is there and displays the values I want it to show, but when I
select the correct fileNumber of the person I wish to choose, it only
displays in the FileNumber field, not in either LastName or FirstName.
I then tried to do it with unbound boxes with the control source listed as
=cboFileNumber.Column(1)
=cboFileNumber.Column(2)
for LastName and FirstName respectively and just get the error message
"#Name?" in the box, no data.
What am I doing wrong?