此主题相关图片如下:qq浏览器截图20210626141342.png
Dim Filter As String
With e.Form.Controls("店名")
If .Value IsNot Nothing Then
Filter = " ','+店名汉字+',' like '%," & .Value & ",%'"
End If
End With
With e.Form.Controls("对账品名")
If .Value IsNot Nothing Then
If Filter > "" Then
Filter = Filter & " And "
End If
Filter = Filter & "对账品名 = '" & .Value & "'"
End If
End With
With e.Form.Controls("对账品类")
If .Value IsNot Nothing Then
If Filter >"" Then
Filter = Filter & " And "
End If
Filter = Filter & "对账品类 = '" & .Value & "'"
End If
End With
With e.Form.Controls("进货退货")
If .Value IsNot Nothing Then
If Filter >"" Then
Filter = Filter & " And "
End If
Filter = Filter & "进货退货 = '" & .Value & "'"
End If
End With
With e.Form.Controls("备注二")
If .Value IsNot Nothing Then
If Filter >"" Then
Filter = Filter & " And "
End If
Filter = Filter & "备注二 = '" & .Value & "'"
End If
End With
With e.Form.Controls("备注一")
If .Value IsNot Nothing Then
If Filter >"" Then
Filter = Filter & " And "
End If
Filter = Filter & "备注一 = '" & .Value & "'"
End If
End With
With e.Form.Controls("开始日期")
If .Value IsNot Nothing Then
If Filter >"" Then
Filter = Filter & " And "
End If
Filter = Filter & "日期 >= '" & .Value & "'"
End If
End With
With e.Form.Controls("结束日期")
If .Value IsNot Nothing Then
If Filter >"" Then
Filter = Filter & " And "
End If
Filter = Filter & "日期 <= '" & .Value & "'"
End If
End With
If Filter > "" Then
DataTables("进货退货").LoadFilter = Filter
DataTables("进货退货").Load()
End If
店名单值才可以加载,多值加载就没内容
[此贴子已经被作者于2021/6/26 14:14:42编辑过]