sql已经加了条件,加载的数据全部都是符合条件的,BuildTree没有必要加条件了
trv.BuildTree(dtt, "年|月|FSupplyID")
'cm .CommandText = "SE LECT DISTINCT Year(FDate) As 年, Month(FDate) As 月,FSupplyID From {ICStockBill}WHERE FBillNo LIKE '%" & Vars("Var1") & "%'"
FBillNo LIKE '%" & Vars("Var1") & "%'"