G
Guest
Hello Fellow Access User!
In my data, I have two fields that contain dates, say Field1 and Field2. I
have a query that creates another date field, say Field3, so that if the
combination of Month&Day in Field 1 (say 51 for 5/1/2005) is greater than the
combination of Month&Day in Field2, Field3 would return the year of Field 1,
otherwise it would return the year of Field2.
My query works fine except for cases when the month in Field1 or Field2 is
October or later, and the month in the other field is September or earlier.
For example, if the date in Field1 is 5/1/05 and the date in Field2 is
11/5/06, access compares 51 to 115, and for some reason returns 2005 instead
of 2006.
Any help with overcoming this issue would be greatly appreciated.
Thank you!
Magnivy
In my data, I have two fields that contain dates, say Field1 and Field2. I
have a query that creates another date field, say Field3, so that if the
combination of Month&Day in Field 1 (say 51 for 5/1/2005) is greater than the
combination of Month&Day in Field2, Field3 would return the year of Field 1,
otherwise it would return the year of Field2.
My query works fine except for cases when the month in Field1 or Field2 is
October or later, and the month in the other field is September or earlier.
For example, if the date in Field1 is 5/1/05 and the date in Field2 is
11/5/06, access compares 51 to 115, and for some reason returns 2005 instead
of 2006.
Any help with overcoming this issue would be greatly appreciated.
Thank you!
Magnivy