stevenblanc
Registered User.
- Local time
- Today, 07:19
- Joined
- Jun 27, 2011
- Messages
- 103
Alright folks,
It's been a while, I hope everyone is well. This is a stupid error that I am hoping is due to some small oversight. I've simplified the process just to minimize that chance.
Here goes:
I have several required fields which if the user decides to hit cancel or the red x close button I wish to simply cancel the save. I had the Cancel button working, however for the life of me i could not get the form close button to bypass the save attempt. I eventually reduced the code to its present form above to see if that would do the trick. No dice.
I also attempted placing "Cancel = True" in the form_load event to no avail. How can I cancel users entry if they hit the red x close button? I tried looking on the forums but nothing yet. If it matters, I'm using Access 2010.
Cheers,
Steven
It's been a while, I hope everyone is well. This is a stupid error that I am hoping is due to some small oversight. I've simplified the process just to minimize that chance.
Here goes:
Code:
Private Sub Form_BeforeUpdate(Cancel As Integer)
Cancel = True
End Sub
I have several required fields which if the user decides to hit cancel or the red x close button I wish to simply cancel the save. I had the Cancel button working, however for the life of me i could not get the form close button to bypass the save attempt. I eventually reduced the code to its present form above to see if that would do the trick. No dice.
I also attempted placing "Cancel = True" in the form_load event to no avail. How can I cancel users entry if they hit the red x close button? I tried looking on the forums but nothing yet. If it matters, I'm using Access 2010.
Cheers,
Steven