ramhanuman
Registered User.
- Local time
- Today, 03:47
- Joined
- May 1, 2012
- Messages
- 13
Lets say the user enters some information into the textboxes in the form window but decides to scrap it so he/she clicks the X button. I know I should handle this in the form unload event but I don't know how to prevent the form from saving to the database. This is what I thought the code should look like:
Private Sub Form_Unload(Cancel As Integer)
Me.Undo
End Sub
Any ideas on how to prevent the form from saving to the tables if the user clicks the X? Thank you
Private Sub Form_Unload(Cancel As Integer)
Me.Undo
End Sub
Any ideas on how to prevent the form from saving to the tables if the user clicks the X? Thank you