I am trying to build a database to replace the Excel databases I created months ago. I've been googling and working through most of the issues that have come up, but this one has completely stumped me.
The main form to record the audit has a single combo box that populates and records 3 other fields based on the selection. The combo box contains the employee's name. A selection here then automatically updates and adds the employee's supervisor, manager, and employee ID. This was working exactly as intended when I built it an hour ago. Now, it saves the correct supervisor, manager, and employee ID but not the employee selected. Instead, it saves the employee immediately above in the combo box list.
So, if the options were "John Smith", "Mike Adams", "Luke Picard", and I select "Mike Adams" all of Mike Adams' additional information will be correct, but his name will be recorded as "John Smith". The specifics of my form is below.
Combo Box: "RMsCB", 4 columns with widths at 1",0",0",0". Control source is "RMs" and Row Source is from a "RefManagers Query" that returns the information given below. There is an "AfterUpdate" event with the following code:
Code:
Private Sub RMsCB_AfterUpdate()
txtEmpID = RMsCB.Column(1)
txtTeamLead = RMsCB.Column(2)
txtSectLead = RMsCB.Column(3)
End Sub
Any help is appreciated. Thank you.