G
Guest
First, let me say I love this discussion group. It has saved me hours of work.
Here's my dilemma. In a query, I'm trying to convert a text (date) field to
an actual date field. I used the following IIF statement:
IIf(Year(DateValue([MEMBER_DATE_OF_BIRTH]))>2000,DateAdd("yyyy",-1000,DateValue([MEMBER_DATE_OF_BIRTH]))
The problem: Any year above 2000 comes out 1001 and anything below 1929
comes out 1029 (eg., 01-JAN-01 yields 1/1/1001; 26-MAY-29 yields 5/26/1029).
What am I doing wrong? Please help.
Here's my dilemma. In a query, I'm trying to convert a text (date) field to
an actual date field. I used the following IIF statement:
IIf(Year(DateValue([MEMBER_DATE_OF_BIRTH]))>2000,DateAdd("yyyy",-1000,DateValue([MEMBER_DATE_OF_BIRTH]))
The problem: Any year above 2000 comes out 1001 and anything below 1929
comes out 1029 (eg., 01-JAN-01 yields 1/1/1001; 26-MAY-29 yields 5/26/1029).
What am I doing wrong? Please help.