Dim Filter As String
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
想设计一个筛选, 从开始日期到结束日期筛选,输入以上Click事件代码后,设计的筛选没有任何反映