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("cmbEmployee")
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
请问如何加入到上面的查询代码中 Tables("車輛打理").Filter = "結束日期時間 Is Null"
[此贴子已经被作者于2012-2-8 23:14:48编辑过]