在保存数据之前是否有可能进行访问询问?
这是一个用VBA编写的程序,在Access中运行。每次我们在表单上输入一些数据并按导航栏上的下一个记录按钮时,数据都会自动保存。我想知道是否有可能改变这种行为,例如,在保存数据之前询问用户。
There's this program written by VBA running in Access. Every time we enter some data on a form and press the next record button on navigation bar data is saved automatically. I would like to know if there's a possibility to change this behavior, for example, to ask the user before saving the data.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可以将更新前事件用于具有取消和撤消功能的表单,但这绝不是万无一失的。
如果数据输入有问题,不要认为询问会有帮助,我已经尝试过“你确定吗?”之前,用户养成了自动单击“是”,然后单击“哎呀”的习惯。
It may be possible to use the before update event for the form with cancel and undo, but it is by no means infallible.
If there is some problem with data entry, do not think that asking will help, I have tried "Are you sure?" before, and the user gets into the habit of clicking yes automatically, followed by "oops".