在保存数据之前是否有可能进行访问询问?

发布于 2024-09-12 19:00:05 字数 102 浏览 2 评论 0原文

这是一个用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一页 2024-09-19 19:00:05

可以将更新前事件用于具有取消和撤消功能的表单,但这绝不是万无一失的。

如果数据输入有问题,不要认为询问会有帮助,我已经尝试过“你确定吗?”之前,用户养成了自动单击“是”,然后单击“哎呀”的习惯。

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".

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文