Dim lm As String = e.Form.Controls("CXL").Value
With e.Form.Controls("StartDate")
If .Value IsNot Nothing Then
If Filter >"" Then
Filter = Filter & " And "
End If
Filter = Filter & lm & " >= #" & .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 & lm & " <= #" & .Value & "#"
End If
End With
DataTables("订单").LoadFilter = Filter
DataTables("订单").Load()