错误2585 - 无法执行此操作 [英] Error 2585 - This action cannot be carried out

查看:186
本文介绍了错误2585 - 无法执行此操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以解释这个错误。我在表格上的按钮中有以下代码

Can anyone explain this error. I have the following code in a button on a form

展开 | 选择 | Wrap | 行号

推荐答案

我有通过将代码更改为解决问题;

I have sort of solved the problem by changing the code to;

展开 | 选择 | Wrap | 行号


On Error Resume Next只是隐藏错误


如果更新正在运行,或者与该表单相关的其他进程正在运行,你可以等待它要完成


尝试将一个DoEvents或DBEngine.Idle放入

例如


Private Sub cmdExit_Click( )


DoEvents

DoCmd.Close acForm,ActivityMaintenance


End Sub
< br $>





Private Sub cmdExit_Click()


DBEngine .Idle

DoCmd.Close acForm,ActivityMaintenance


End Sub



if关闭当前表格,你刚试过这样做

DoCmd.Close
On Error Resume Next simply hides the error

If the update is running, or some other process related to that form, is running, u could wait for it to complete

try putting a DoEvents or DBEngine.Idle in
e.g.

Private Sub cmdExit_Click()

DoEvents
DoCmd.Close acForm, "ActivityMaintenance"

End Sub


or



Private Sub cmdExit_Click()

DBEngine.Idle
DoCmd.Close acForm, "ActivityMaintenance"

End Sub


if closing current form, have u just tried doing this
DoCmd.Close



任何人都可以解释这个错误。我在表格上的按钮中有以下代码

Can anyone explain this error. I have the following code in a button on a form

展开 | 选择 | Wrap | 行号


这篇关于错误2585 - 无法执行此操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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