I have a simple form that I have added combo box to. I added some code to the AfterUpdate event that would put one of the values from the combo box into a textbox. However, the event never fires.
I tried On_Change but that does not work either.
Here is my code:
Option Compare Database
Private Sub cboConsignee_AfterUpdate()
msgbox("Test",vbDefaultButton1)
Me.txtConsigneeAddress.Value = Me.cboConsignee.Column(2)
End Sub
What is wrong here? I don't think that there is a problem with the code but there must be a setting somewhere that I need to change.
I am using Access 2007 on Windows XP Pro
Thanks.
I tried On_Change but that does not work either.
Here is my code:
Option Compare Database
Private Sub cboConsignee_AfterUpdate()
msgbox("Test",vbDefaultButton1)
Me.txtConsigneeAddress.Value = Me.cboConsignee.Column(2)
End Sub
What is wrong here? I don't think that there is a problem with the code but there must be a setting somewhere that I need to change.
I am using Access 2007 on Windows XP Pro
Thanks.