0
votes

For some reason my Combo box will not populate a text box field, i have done this on previous forms and even have working in different fields on this very form, but i cannot seem to get it to populate one text box. here is a picture to show what is happening, as well as the code. in theory it should work and all the properties are set correct. This combo box is from another table though.

Private Sub ProjectID_Change() 
Me.Client_Name.Value = Me.ProjectID.Column(2) 
End Sub

enter image description here

1

1 Answers

0
votes

Combobox columns are numbered from (0) so you need to reference column 1 ;

Private Sub ProjectID_Change() 
    Me.Client_Name.Value = Me.ProjectID.Column(1) 
End Sub

And as suggested move it to the AfterUpdate event.