|
请教各位高手们,为什么这段代码会出现引用错误:
错误提示如下:
运行时错误 '2455'
您输入的表达式对属性form/reportr 的引用无效
这是一个子过程代码,在主窗体form_current()被调用,根据主窗体一控件值来判定是否可以编辑\新增\删除...
在打开时出现错误!
Private Sub FormQx()
Dim ZT As Boolean
ZT = Me.资料状态.Value
Me.审核.Value = IIf(ZT = True, "已审核", "未审核")
With Me
.AllowAdditions = Not ZT
.AllowDeletions = Not ZT
.AllowEdits = Not ZT
End With
With Me.Form![frm_CL绩效明细].Form '错误出现在这里
.AllowAdditions = Not ZT
.AllowDeletions = Not ZT
.AllowEdits = Not ZT
End With
End Sub
[ 本帖最后由 cuxun 于 2007-12-12 07:38 编辑 ] |
|