K
kryszystof via AccessMonster.com
Hello to all,
kryszystof said:Sorry,
i have a query, and i want to create an expression that depends on a date
field.
i have
Field1 | Field2
Date Expr
field 2is such: adj1: iif([DateField] >= "01/01/2002",[do calculation], " ")
i think it has to do with the date format that i am searching by, or possibly
syntax?
TIA,
~K
Hello to all,
wow!, I fixed my problem myself!
thanks to anyone who might have wrote back!
(i removed quotes~ works like charm)[quoted text clipped - 15 lines]Sorry,
kryszystof via AccessMonster.com said:Nevermind, I still need help!
more ways than one! lol
wow!, I fixed my problem myself!
thanks to anyone who might have wrote back!
(i removed quotes~ works like charm)[quoted text clipped - 15 lines]Sorry,Hello to all,
kryszystof said:i have a query, and i want to create an expression that depends on a date
field.
i have
Field1 | Field2
Date Expr
field 2is such: adj1: iif([DateField] >= "01/01/2002",[do calculation], " ")
i think it has to do with the date format that i am searching by, or possibly
syntax?
Marshall said:[quoted text clipped - 8 lines]i have a query, and i want to create an expression that depends on a date
field.i think it has to do with the date format that i am searching by, or possibly
syntax?
Date values (as opposed to text strings) need to be enclosed
in # characters. In addition, you probably do not really
want to evaluate to a space character, or even a zero length
string when the date is before 1/1/02. I can't be sure from
your expression, but I think you want to use:
adj1: IIf([DateField] >= #1/1/2002#, [do calculation], Null)
kryszystof via AccessMonster.com said:THANK YOU EVER SO MUCH!
I have been beating my on my desk all afternoon!
I did (at one time) know about the '#' seperator, but forgot.
Thanks again,
~K
Marshall said:[quoted text clipped - 8 lines]i have a query, and i want to create an expression that depends on a date
field.i think it has to do with the date format that i am searching by, or
possibly
syntax?
Date values (as opposed to text strings) need to be enclosed
in # characters. In addition, you probably do not really
want to evaluate to a space character, or even a zero length
string when the date is before 1/1/02. I can't be sure from
your expression, but I think you want to use:
adj1: IIf([DateField] >= #1/1/2002#, [do calculation], Null)