表必须显示出来才能用,如果是dt的话,你要显示到table上才行。
Dim q As new QueryBuilderq.TableName = "表Z"q.SelectString = "select * from {表A}"q.BuildDim dt1 As DataTable = DataTables("表Z")
Dim q1 As new OuterTableBuilderq1.TableName = "表T"q1.SelectString = "select * from {表B} "q1.Build
Dim dt2 As DataTable = DataTables("表T")Relations.Add("abc", dt1.DataCols("第一列"), dt2.DataCols("第二列"))