- Local time
- Today, 05:08
- Joined
- Feb 28, 2001
- Messages
- 30,920
For the Navy system that was my most recent big project, the rule was that the user had to explicitly save or cancel any inputs. I had sense whether the form was dirty and if so, to block of navigation, the upper-right X to close the form, and I had a separate CLOSE command that would go invisible if the form was dirty. I also blocked the update at BeforeUpdate so that if the user hadn't used the save button, the form (and Access) would refuse to close. I couldn't stop a shutdown due to power or certain other uncontrollable events, but the idea was that since the result had to do with system security, there could be no accidental updates.
I bring that up ONLY because it was a real P.I.T.A. to block off all of the ways that Access would support a save operation via implicit triggers. At least I didn't have to worry about Me.Dirty diddling because the users couldn't see the code. On the other hand, once I got it working right, the users actually liked the fact that they could only do what the form thought they were ready to do. The "not ready" buttons would vanish or appear based on form context. It is not for the faint of heart, but it had a relatively good "look and feel" and responded pretty well.
I bring that up ONLY because it was a real P.I.T.A. to block off all of the ways that Access would support a save operation via implicit triggers. At least I didn't have to worry about Me.Dirty diddling because the users couldn't see the code. On the other hand, once I got it working right, the users actually liked the fact that they could only do what the form thought they were ready to do. The "not ready" buttons would vanish or appear based on form context. It is not for the faint of heart, but it had a relatively good "look and feel" and responded pretty well.