Hi guys,
I have a combo box named cboProjects. In it you can select either One or Two, with the corresponding IDs 1 and 2. The code I have is this:
Now let's say One is chosen, and I go and select Two. From my understanding, I would expect it to display:
BeforeUpdate: 1
AfterUpdate: 2
However, this is not the case. This is what is displayed:
BeforeUpdate: 2
AfterUpdate: 2
which makes absolutely no sense!
Is it that my understanding is flawed, or am I not doing something right?
Thank you
Marc
I have a combo box named cboProjects. In it you can select either One or Two, with the corresponding IDs 1 and 2. The code I have is this:
Code:
Private Sub cboProjects_AfterUpdate()
MsgBox "AfterUpdate: " & [cboProjects]
End Sub
Private Sub cboProjects_BeforeUpdate(Cancel As Integer)
MsgBox "BeforeUpdate: " & [cboProjects]
End Sub
BeforeUpdate: 1
AfterUpdate: 2
However, this is not the case. This is what is displayed:
BeforeUpdate: 2
AfterUpdate: 2
which makes absolutely no sense!
Is it that my understanding is flawed, or am I not doing something right?
Thank you
Marc