This works for one text box, now I want to autofill other text boxes. Such as Pick the name, and, the ID, the mgr name and mgr ID fills in automatically.
I am trying to automatically fill 3 more text boxes once I fill in one text box. I am using the process below which works for me to fill one text box but not more than that.
I have the comboboxes row source changed to:
SELECT ID, Name, mgr ID, mgr Name FROM tblStaff ORDER BY 5
Then, in the AfterUpdate event procedure of that combo:
Me![Box2] = Me![Combo1].Column(1)
Me![Box3] = Me![Combo1].Column(2)
Me![Box4] = Me![Combo1].Column(3)
Me![Box5] = Me![Combo1].Column(4)
But this only updates the first column and not the others. Can you please tell me what I am doing wrong?
Thanks.
I am trying to automatically fill 3 more text boxes once I fill in one text box. I am using the process below which works for me to fill one text box but not more than that.
I have the comboboxes row source changed to:
SELECT ID, Name, mgr ID, mgr Name FROM tblStaff ORDER BY 5
Then, in the AfterUpdate event procedure of that combo:
Me![Box2] = Me![Combo1].Column(1)
Me![Box3] = Me![Combo1].Column(2)
Me![Box4] = Me![Combo1].Column(3)
Me![Box5] = Me![Combo1].Column(4)
But this only updates the first column and not the others. Can you please tell me what I am doing wrong?
Thanks.