jbfraleigh
Registered User.
- Local time
- Today, 10:12
- Joined
- Aug 8, 2000
- Messages
- 22
I'd like to be able to format the text that a user enters before it is saved into a table, but I've been unsuccessful to date.
I thought that I might be able to use the BeforeUpdate event. Unfortunately, Access won't let me modify the field that it is about to update (it generates error code 2115).
Any thoughts on how I can modify the data after the user is done with it, but before Access saves it to the table???
Things I've tried (or thought about):
1) LostFocus or OnExit event - Executes after the BeforeUpdate event.
2) OnChange event - Will execute (and modify the data) while the user is still entering data.
3) KeyPress event - The control may lose focus before the user has finished entering data (example: the user types a few characters, notices an error in another field and clicks to that field to fix it). This will trigger an update event when the data may not be valid...
Thanks
I thought that I might be able to use the BeforeUpdate event. Unfortunately, Access won't let me modify the field that it is about to update (it generates error code 2115).
Any thoughts on how I can modify the data after the user is done with it, but before Access saves it to the table???
Things I've tried (or thought about):
1) LostFocus or OnExit event - Executes after the BeforeUpdate event.
2) OnChange event - Will execute (and modify the data) while the user is still entering data.
3) KeyPress event - The control may lose focus before the user has finished entering data (example: the user types a few characters, notices an error in another field and clicks to that field to fix it). This will trigger an update event when the data may not be valid...
Thanks