I'm trying to get the value of a combobox before an update. I've tried using before update and onclick, but these stil show the value after the update rather than the original value before the update?
For example the code below will show the new changed value of the combobox and never thw value before the change\upadate
For example the code below will show the new changed value of the combobox and never thw value before the change\upadate
Code:
Private Sub ControlCombobox1_AfterUpdate()
If Not IsNull(ControlCombobox1) And ControlCombobox1 <> "" Then
MsgBox ("[AfterUpdate] Value:" & ControlCombobox1)
End If
End Sub
Private Sub ControlCombobox1_BeforeUpdate(Cancel As Integer)
If Not IsNull(ControlCombobox1) And ControlCombobox1 <> "" Then
MsgBox ("[BeforeUpdate] Value:" & ControlCombobox1)
End If
End Sub
Private Sub ControlCombobox1_Click()
If Not IsNull(ControlCombobox1) And ControlCombobox1 <> "" Then
MsgBox ("[OnClick] Value:" & ControlCombobox1)
End If
End Sub
Comment