此主题相关图片如下:001.jpg
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
Tables("送货管理").Filter = Filter
End If
此主题相关图片如下:002.png
此主题相关图片如下:003.png
此主题相关图片如下:004.png
请大家帮我看看怎么回事
[此贴子已经被作者于2018/12/24 17:08:34编辑过]