为什么'On next resume next'让我点击保存两次? (没有错误?) [英] Why does 'On error resume next' make me click Save twice? (No error?)

查看:49
本文介绍了为什么'On next resume next'让我点击保存两次? (没有错误?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你能否提升我对Access的理解?我不喜欢我能治愈的东西,但不明白为什么!


我已将表格上的Save宏转换为VBA。它看起来像这样......因为我相信你已经知道了。

展开 | 选择 | Wrap | 行号

解决方案

我猜你可能在表单的before_update事件中有一些代码?我猜测第一次运行代码时可能会导致错误,因此不保存记录。


如果你的before_Update中有代码,请尝试发布。


再次问好,笑脸!


你指出了我正确的方向,但我把问题追溯到了

展开 | 选择 | Wrap | 行号


它可能与这个,我在字节中的第一篇文章。


尝试运行一些debug / msgbox语句来确定addr_afterupdate是在save命令之前还是之后运行

Can you boost my understanding of Access? I don''t like things I can ''cure'' but don''t understand why!

I''ve converted the Save macro on my form to VBA. It looks like this ... as I''m sure you already know.

Expand|Select|Wrap|Line Numbers

解决方案

Im going to guess you might have some code in your before_update event of the form? Im guessing something in there might be causing an error the first time the code is run, therefore not saving the record.

If you have code in your before_Update, try posting it.


Hello again, Smiley!

You pointed me in the right sort of direction, but I tracked the problem down to

Expand|Select|Wrap|Line Numbers


Well it might be somewhat related to this, my first post in Bytes.

Try running some debug/msgbox statements to determine whether the addr_afterupdate is runned before or after the save command.


这篇关于为什么'On next resume next'让我点击保存两次? (没有错误?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆