I'm trying to filter records by date but the Value of frmInput.lstDate.Value is equal to 40999. I've tried to format it my lstDate.value as a date using format(frmInput.lstDate.Value,"mmddyy") but that wasn't quite right either. What am I'm missing?
Code:
If Not .FilterMode Then .Range("A1").AutoFilter
.Range("A1").AutoFilter , Field:=1, Criteria1:=">=" & "3/31/12", _
Operator:=xlAnd, Criteria2:="<=" & frmInput.lstDate.Value