Dim trv As WinForm.TreeView = e.Form.Controls("trv选择成员") Dim str As String = "" For Each nd As WinForm.TreeNode In trv.AllNodes If nd.Level = 1 Then If nd.Checked Then str &= "," & nd.text End If End If Next Tables("表A").current("团队成员")=str.Trim(",") Forms("下拉窗口").close