G
geebee
I have a query in which one of the columns is as follows:
expr1: CDate(Mid([activity date],3,1) & "/" & IIf(Right([activity date],2)
Like "0*",Right([activity date],1),Mid([activity date],4,2)) & "/" & "200" &
Left([activity date],1))
expr2: CDate(Mid([activity date],3,1) & "/" & IIf(Right([activity date],2)
Like "0*",Right([activity date],1),Mid([activity date],4,2)) & "/" & "200" &
Left([activity date],1))
when I run another new query with just these columns in it and a condition
of "between #7/1/2006# and #7/31/2006#" for [expr2], it runs fine without a
problem, but when I run my entire query with these columns in addition to the
added condition of "between [popenterdt] and [resolveddt] for [expr2], I get
the aforementioned error message.
Note that [popenterdt] and [resolveddt] are both date format columns.
What do I need to do? Should I add the following to the criteria for
[expr2]?:
between "#" & [popenterdt] & "#" AND "#" & [resolveddt] & "#"
Thanks in advance,
geebee
expr1: CDate(Mid([activity date],3,1) & "/" & IIf(Right([activity date],2)
Like "0*",Right([activity date],1),Mid([activity date],4,2)) & "/" & "200" &
Left([activity date],1))
expr2: CDate(Mid([activity date],3,1) & "/" & IIf(Right([activity date],2)
Like "0*",Right([activity date],1),Mid([activity date],4,2)) & "/" & "200" &
Left([activity date],1))
when I run another new query with just these columns in it and a condition
of "between #7/1/2006# and #7/31/2006#" for [expr2], it runs fine without a
problem, but when I run my entire query with these columns in addition to the
added condition of "between [popenterdt] and [resolveddt] for [expr2], I get
the aforementioned error message.
Note that [popenterdt] and [resolveddt] are both date format columns.
What do I need to do? Should I add the following to the criteria for
[expr2]?:
between "#" & [popenterdt] & "#" AND "#" & [resolveddt] & "#"
Thanks in advance,
geebee