ramhanuman
Registered User.
- Local time
- Yesterday, 18:36
- Joined
- May 1, 2012
- Messages
- 13
My goal is to prevent anything from saving to the database if the user just hits the close button on the top right of the form. I'm not positive but I believe the form calls the Close command when you click the X, so I tried something like this
Private Sub Form_Close()
Form.Dirty = False
End Sub
But the record still gets saved into the database. So how can I make it so that when the user clicks the close button it just closes and doesn't save anything? Thank you
Private Sub Form_Close()
Form.Dirty = False
End Sub
But the record still gets saved into the database. So how can I make it so that when the user clicks the close button it just closes and doesn't save anything? Thank you