I am relatively new to access and am having trouble getting this to work. I did it before in school but can't seem to make it happen now. I have a form where the user selects a user id from a combo box. The combo has the user id in column 1, and the username in column 2so that the user can see the name when selecting the proper id. When the user selects the id, the id is diplayed in the combo box. What I want to do is have the user name display in an unbound text box right next to the combo. The code I am using to this point is given below. This code is based off of a database I built in school but I can't get it to work for this application.:
Private Sub MANAGER_AfterUpdate()
'Dim strfilter As String
'Dim strID As String
'Dim strName As String
'strID = Me![MANAGER]
'strfilter = "[MANAGER] = " & intID
'strName = DLookup("[APDisplay]", "dbo_MANAGER", strfilter)
'Me![NewText1] = strName
End Sub
Private Sub MANAGER_AfterUpdate()
'Dim strfilter As String
'Dim strID As String
'Dim strName As String
'strID = Me![MANAGER]
'strfilter = "[MANAGER] = " & intID
'strName = DLookup("[APDisplay]", "dbo_MANAGER", strfilter)
'Me![NewText1] = strName
End Sub