level 1
我想在窗体2的文本框text2可以显示窗体1的text1输入的值
在窗体2中输入代码Me.Text2.Value = Form_窗体1!Text1.Value为什么无法实现?
2018年07月16日 02点07分
1
level 1
试下text2的“控件来源”属性设为Form_窗体1!Text1
最好把窗体2设成窗体1的子窗体,将text设为链接字段
2018年07月24日 08点07分
2
level 1
参考一下这个思路:录入窗体1的Text1文本框时设置触发事件,
写下代码:
DoCmd.OpenForm "窗体2", acFormDS, "", "从开窗体2的where条件", acEdit, acHidden
‘也就是说,录好Text1后就隐藏打开窗体2,acEdit是指窗体2的内容可编辑,achidden是指稳藏打开
Form.窗体2!Text2=Form.窗体1!Text1
DoCmd.Close acForm, "窗体2"
关闭窗体2
2021年02月24日 02点02分
4