Dim Filter As String
With e.Form.Controls("cmbProduct")
If .Value IsNot Nothing Then
Filter = "客户名称 = '" & .Value & "'"
End If
End With
With e.Form.Controls("StartDate")
If .Value IsNot Nothing Then
If Filter >"" Then
Filter = Filter & " And "
End If
Filter = Filter & "日期 >= '" & .Value & "'"
End If
End With
With e.Form.Controls("EndDate")
If .Value IsNot Nothing Then
If Filter >"" Then
Filter = Filter & " And "
End If
Filter = Filter & "日期 <= '" & .Value & "'"
End If
End With
If Filter > "" Then
DataTables("客户明细账_Table1").LoadFilter = Filter 'And dr '设置加载条件
DataTables("客户明细账_Table1").Load()
End If
这段代码如何把这个条件加进去 "经办人 = '" & User.Name & "'"