更新时间:2023-12-06 16:41:10
如果不是.EOF而不是.BOF那么
.MoveFirst
请勿.EOF
>
''遍历所有控件,找到正确的文本框输入数据到
?注意:文本框的标签值是1,2,3?
每个ctl In Forms!frmMain![subform1 control] .Controls
如果ctl.ControlType = acTextBox那么
如果CLng(ctl.Tag)= rsClone!FKxxxID那么
ctl.Value = rsClone!intxxx.Value
''退出循环以节省时间一旦找到
退出
结束如果
结束如果
下一步ctl
.MoveNext
循环
否则
''设置你的未绑定字段=""单独或带循环
结束如果
芯片,
感谢您的评论和评论。我已经尝试了各种各样的方法,但都是徒劳的。这就是我刚刚尝试添加自我声明的地方...
Chip,
Thank you for your review and comments. I''ve tried various ways of what you suggested, all with futility. Here''s what I just tried adding where you put the self statement...
确保您正在引用子窗体控件的名称,而不是每月分配子窗体中的源。
Make sure you are referencing the subform control''s name rather than it''s source in Monthly Allocations Subform.