您好,老师!我做了个筛选功能的窗口,但是只能输入完整型产品型号,实际运用中,输入不完整找到很方便,但是程序不会改,请教一下老师,帮忙指导修改一下。
Dim Filter As String
With e.Form.Controls("cmbProduct")
If .Value IsNot Nothing Then
Filter = "产品型号 = '" & .Value & "'"
End If
End With
With e.Form.Controls("cmbCustomer")
If .Value IsNot Nothing Then
If Filter > "" Then
Filter = Filter & " And "
End If
Filter = Filter & "客户姓名 = '" & .Value & "'"
End If
End With
With e.Form.Controls("ComboBox1")
If .Value IsNot Nothing Then
If Filter > "" Then
Filter = Filter & " And "
End If
Filter = Filter & "厂家名称 = '" & .Value & "'"
End If
End With
此主题相关图片如下:mmexport1540337325363.jpg