问题描述
我将Acc97转换为Acc2003并得到此错误命令或操作
''SaveRecord''现在不可用当我试图打开一个表单添加
信息表单时,其中有保存按钮。我检查了参考在工具中
参见DAO 3.6对象库设置,它是对的。
如何解决此错误?
谢谢。
I converted Acc97 to Acc2003 and got this error "The command or action
''SaveRecord'' isn''t available now" when i tried to open one form"Add
Info form", which has Save button. I checked "reference" in Tool to
see DAO 3.6 object library setting, and it was right.
How can i resolve this error?
Thanks.
推荐答案
你在保存记录按钮上使用了什么代码。
What code exactly are you using on the save record button.
Clickevent和commandbutton - 保存按钮
哪里可以在代码中添加这一行?
如果Me.Dirty然后RunCommand acCmdSaveRecord
Clickevent and commandbutton - Save button
where can i add this line in the code?
If Me.Dirty Then RunCommand acCmdSaveRecord
我不确定你的意思。您提供的代码使用记录集来保存数据。如果对表单进行了任何更改,上面的代码行将保存记录。但是,这会自动发生在绑定的表格上。
Mary
I''m not sure what you mean. The code you have given uses recordsets to save data. The line of code above would save a record if any changes had been made on a form. However, this would happen automatically on a bound form.
Mary
这篇关于错误“命令或操作'SaveRecord'现在不可用”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!