WantsToLearn
Programmer
Hello All,
I have done mostly VBA. What are the equivalents for the BeforeUpdate(Cancel), AfterUpdate events for controls in VB? The Validate event fires only when a control loses focus and the Change event is every key stroke so I would have to check for Enter.
Also, in VBA there is a form Dirty property which is reset whenever the underlying data is saved. My VB form is unbound and updated using an ADO command object. Do I have to put code in every control to determine whether or not something has changed? The reason is because I want to prompt if the user closes the form with unapplied changes.
I have done mostly VBA. What are the equivalents for the BeforeUpdate(Cancel), AfterUpdate events for controls in VB? The Validate event fires only when a control loses focus and the Change event is every key stroke so I would have to check for Enter.
Also, in VBA there is a form Dirty property which is reset whenever the underlying data is saved. My VB form is unbound and updated using an ADO command object. Do I have to put code in every control to determine whether or not something has changed? The reason is because I want to prompt if the user closes the form with unapplied changes.