If MainTable.Name = "产品表" Then Dim tb As New DropTreeBuilder tb.SourceTable = DataTables("产品分类表") '指定目录树表 tb.TreeCols = "类别一|类别二" '指定用于生成目录树的列 tb.SourceCols = "类别一|类别二" '指定数据来源列 tb.ReceiveCols = "类别一|类别二" '指定数据接收列 Tables("产品表").Cols("类别一").DropTree = tb.Build() End If