R
rocketD
Hi All,
I've read the autopopulate-text-box-based-on-combo-box threads, but I
still can't seem to get mine to work. My combo box is unbound, but
draws its info from a SELECT statement, specifically a join query that
links a bunch of tables. The combo box, called targetID, draws 3
fields, and I have them set to display as 0";1";0". I want the text
box, called API14, to autopopulate with the info from the third column
in the targetID combo box when an item is selected.
The combo box is set up to refresh (Me.Refresh) OnChange so that a
subform linked to its value will refresh and display relevant
records. To populate the text box, I've also included the following
AfterUpdate procedure:
Private Sub targetID_AfterUpdate()
Me.API14 = Me.targetID.Column(3)
End Sub
However, when the targetID is selected, the API14 remains blank. Can
anyone please tell me what I'm doing wrong?
Thanks,
Dara
I've read the autopopulate-text-box-based-on-combo-box threads, but I
still can't seem to get mine to work. My combo box is unbound, but
draws its info from a SELECT statement, specifically a join query that
links a bunch of tables. The combo box, called targetID, draws 3
fields, and I have them set to display as 0";1";0". I want the text
box, called API14, to autopopulate with the info from the third column
in the targetID combo box when an item is selected.
The combo box is set up to refresh (Me.Refresh) OnChange so that a
subform linked to its value will refresh and display relevant
records. To populate the text box, I've also included the following
AfterUpdate procedure:
Private Sub targetID_AfterUpdate()
Me.API14 = Me.targetID.Column(3)
End Sub
However, when the targetID is selected, the API14 remains blank. Can
anyone please tell me what I'm doing wrong?
Thanks,
Dara