老师批评的对,概念不清,这个不是明细表。修改了问题表述。
其实,就是想实现在窗口中 ,当前行变化的话,自动find出 表bcdef 中 与“任务ID”=当前行[_Identify] 的数据,并显示,就是这个意思。
这个显示还不方便用table控件来模拟关联表,否则就会抄帮助那个案例了
窗口控件太多,像下面的代码,岂不是写死人?
If Tables("表A").Current IsNot Nothing Then
e.Form.Controls("TextBox1").text=Tables("表A").Current("第一列")
e.Form.Controls("ComboBox2").text=Tables("表A").Current("第二列")
e.Form.Controls("ComboBox1").text=Tables("表A").Current("第三列")
If Tables("表A").Current.Isnull("第四列")=False Then
e.Form.Controls("DateTimePicker1").Value=Tables("表A").Current("第四列")
End If
End If
[此贴子已经被作者于2014-10-30 10:15:04编辑过]