pdx_man
Just trying to help
- Local time
- Today, 13:08
- Joined
- Jan 23, 2001
- Messages
- 1,347
What version are your running? I am not familiar with the conDateFormat qualifier in the Format statement.
Well, let's try this:
A question for you. Why are you removing the last 5 characters in strFilter? Is that related to something the conDateFormat is adding?
Also, set the filter before turning it on:
Well, let's try this:
Code:
If Not IsNull(Me.txtToDate) Then 'End date, but no start.
strFilter = strFilter & "[Out Date] <= #" & Format(Me.txtToDate, conDateFormat) & "#"
End If
Else
If IsNull(Me.txtToDate) Then 'Start date, but no End.
strFilter = strFilter & "[Out Date] >= #" & Format(Me.txtFromDate, conDateFormat) & "#"
Else 'Both start and end dates.
strFilter = "[Out Date]" & " Between #" & Format(Me.txtFromDate, conDateFormat) & "#" _
& " And #" & Format(Me.txtToDate, conDateFormat) & "#"
End If
A question for you. Why are you removing the last 5 characters in strFilter? Is that related to something the conDateFormat is adding?
Code:
If strFilter <> "" Then strFilter = Left$(strFilter, Len(strFilter) - 5)
Also, set the filter before turning it on:
Code:
Me!subJobs.Form.Filter = strFilter
Me!subJobs.Form.FilterOn = True