Dim Filter As String
With e.Form.Controls("车型")
If .Value IsNot Nothing Then
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