Hi SoS,
One more quick question - instead of having one date field, i have a "from date" and a "to date" field.... I Created the following code:
I also added the following code to the beginning of the code:
I must be missing something - as i get an error and the search doesn't work anymore...
Basically, i want to return results between whatever dates are chosen.... (from dteAudit).
What am i missing?
Thanks,
Andrew.
One more quick question - instead of having one date field, i have a "from date" and a "to date" field.... I Created the following code:
Code:
If Not IsNull(Me.WhatDate) Then
strFilter = strFilter & "([dteAudit] >= " & Format(Me.WhatDate, conJetDate) & ") AND "
End If
If Not IsNull(Me.WhatDateEnd) Then 'Less than the next day.
strFilter = strFilter & "([dteAudit] < " & Format(Me.WhatDateEnd + 1, conJetDate) & ") AND "
End If
I also added the following code to the beginning of the code:
Code:
Const conJetDate = "\#mm\/dd\/yyyy\#"
I must be missing something - as i get an error and the search doesn't work anymore...
Basically, i want to return results between whatever dates are chosen.... (from dteAudit).
What am i missing?
Thanks,
Andrew.