Good day gents,
Working on a project and having some issues.
Ok so I have a (multi selection) Combo Box of supervisors, when choosing a supervisor from the Combo Box it populates a text box with the supervisors job ID. Now here is the tricky part, sometimes there are two supervisors that need to be selected, when I do that the textbox does not show anything.
So the question is, what is the correct VBA code to have the textbox display only the FIRST SELECTED supervisor and ignore everything else after, no matter which supervisor is selected, and display that supervisors value in the textbox.
Here is the code which I have in vba at the moment. (P.S. the textbox also grabs some other data)
If anyone can shine a light on this issue I would greatly appreciate it.
thank you
-Sasha
Working on a project and having some issues.
Ok so I have a (multi selection) Combo Box of supervisors, when choosing a supervisor from the Combo Box it populates a text box with the supervisors job ID. Now here is the tricky part, sometimes there are two supervisors that need to be selected, when I do that the textbox does not show anything.
So the question is, what is the correct VBA code to have the textbox display only the FIRST SELECTED supervisor and ignore everything else after, no matter which supervisor is selected, and display that supervisors value in the textbox.
Here is the code which I have in vba at the moment. (P.S. the textbox also grabs some other data)
Code:
Private Sub SUPERVISOR_AfterUpdate()
Me.WORK_ID = Right(Me.SUPERVISOR.Column(2), 3) & Format(Me.RECEIVED_DATE, "yymmd")
End Sub
thank you
-Sasha
Last edited: