GK in the UK
Registered User.
- Local time
- Today, 17:07
- Joined
- Dec 20, 2017
- Messages
- 281
Some Access error messages fire the Form_Error event.
When I paste some garbage into a numeric format unbound field, say txtPrice, that had valid data, I can trap the error in Form_Error. I can see txtPrice.text still contains the original, valid input.
What I would like to do is revert txtPrice.text if Form_Error fires my custom message. Is there a way to do this? I tried assigning it in Form_Error (txtPrice = txtPrice.text) but Access complains 'the ... validation ... is preventing Access from saving the data in the field'
When I paste some garbage into a numeric format unbound field, say txtPrice, that had valid data, I can trap the error in Form_Error. I can see txtPrice.text still contains the original, valid input.
What I would like to do is revert txtPrice.text if Form_Error fires my custom message. Is there a way to do this? I tried assigning it in Form_Error (txtPrice = txtPrice.text) but Access complains 'the ... validation ... is preventing Access from saving the data in the field'