If Forms("销售订单").Opened() '一定要判断用于模拟关联表的窗口是否已经打开 Dim b As Table = Tables("销售明细尺码数") Dim c As Table = Tables("销售订单_Table4") Dim d As Table = Tables("销售订单_Table2") If d.Current Is Nothing Then c.Filter = "False" b.Filter = "False" Else b.Cols("尺码信息").Combolist = DataTables("款式尺码").GetComboListString("尺码","[款号] = '" & d.current("款号") & "'") b.Filter = "订单号 = '" & d.Current("流水订单号")& "'" c.Filter = "款号 = '" & d.Current("款号")& "'" End If End If
|