accessuser1023
Registered User.
- Local time
- Today, 06:22
- Joined
- Nov 12, 2012
- Messages
- 71
All,
I have code running behind an image on a form that is used to close it. I also have code running behind the Before_Update() event. My code behind the Before_Update() event was meant to address the user navigating to a new record via the nav bar arrow button at the bottom only. Data is saved automatically for changes in records that have already been entered, so there is no need to code that. Here is my issue:
I have a routine that checks for mandatory field entries for every form I have if it is in add / data entry mode. It is called on every form by the Before_Update() event. However, if a user tries to close a form when entering a new record (say they change their mind and want to cancel the entry) and they press the close image, the Before_Update() runs in addition to the code I have behind the close image.
I don't know how to solve the issue, as I am getting warning messages that I coded that are from both routines. Would anyone have a solution to this by chance?
Comments certainly welcome here. I guess I didn't think this one through.
I have code running behind an image on a form that is used to close it. I also have code running behind the Before_Update() event. My code behind the Before_Update() event was meant to address the user navigating to a new record via the nav bar arrow button at the bottom only. Data is saved automatically for changes in records that have already been entered, so there is no need to code that. Here is my issue:
I have a routine that checks for mandatory field entries for every form I have if it is in add / data entry mode. It is called on every form by the Before_Update() event. However, if a user tries to close a form when entering a new record (say they change their mind and want to cancel the entry) and they press the close image, the Before_Update() runs in addition to the code I have behind the close image.
I don't know how to solve the issue, as I am getting warning messages that I coded that are from both routines. Would anyone have a solution to this by chance?
Comments certainly welcome here. I guess I didn't think this one through.