Select Case nd.Level
Case 0
nd.Text = nd.text & "年(" & dt.Compute("Sum(采购立项数)","年 = " & Year) & "项)"
Case 1
nd.Text = nd.text & "月(" & dt.Compute("Sum(采购立项数)","年 = " & Year & " And 月 = " & Month) & "项)"
Case 2
nd.Text = nd.text & "月(" & dt.Compute("Sum(采购立项数)","年 = " & Year & " And 月 = " & Month & " And 单位类别 = '" & dwlbie & "'" ) & "项)"
Case 3
nd.Text = nd.text & "(" & nd.DataRow("采购立项数") & "项)"
End Select
你这里DT用错了变量
应该用
dtjl