模块功能frm.setfocus运行时2449错误 [英] Module Function frm.setfocus runtime 2449 error
本文介绍了模块功能frm.setfocus运行时2449错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在frm.setfocus行上引起运行时错误2449,表达式中有无效方法"的函数存在问题.所引用的表单是子表单,请提供任何人帮助以解决此错误吗?
I have a problem with a function where it is causing a "RunTime error 2449, There is an invalid method in an expression" on the frm.setfocus line. The form being referred to is a subform, please can anyone help with this error?
函数是:
Function NewItemsSaveAfter(frm As Form)
If frm.Parent.PartSaveYesNo = "Yes" Then
varCurrRec = frm.CurrentRecord
frm.Parent.Form.Refresh
frm.SetFocus
DoCmd.GoToRecord , , acGoTo, varCurrRec
Else
End If
End Function
推荐答案
将焦点设置到包含子窗体的子控件.
Set the focus to the child control containing the subform.
这篇关于模块功能frm.setfocus运行时2449错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文