老师好。如下代码建立了关联Dim tb1 As Table = Tables(e.Form.name & "_table1")
Dim tb2 As Table = Tables(e.Form.name & "_table2")
Dim dtb1 As DataTable = DataTables(e.Form.name & "_table1")
Dim dtb2 As DataTable = DataTables(e.Form.name & "_table2")
If relations.Contains("关联1" ) = False Then
Relations.Add("关联1",dtb1.DataCols("id"),dtb2.DataCols("id"))
End If
tb2没有作为关联表显示。如何让tb2作为关联表显示呢? 谢谢!
[此贴子已经被作者于2021/5/16 7:55:12编辑过]