ThaiByThai
Registered User.
- Local time
- Today, 08:43
- Joined
- Aug 12, 2009
- Messages
- 21
Hi -
I have a table with 2 different dates fields - and i can't get it to show me me the date
I would like to get the query to run something like this --
IF Date1 is GREATER then date2 use date1 IF date1 is LESS then date2 use date2 if there is no date1 use date2
right now it's only reading from date1 - i'm not sure how to do the IF THEN ...
this is what i have now but it's only reading Date1...
CheckDate: DateAdd("m",-6,DateAdd("yyyy",5,[Date1]))
I have a table with 2 different dates fields - and i can't get it to show me me the date
I would like to get the query to run something like this --
IF Date1 is GREATER then date2 use date1 IF date1 is LESS then date2 use date2 if there is no date1 use date2
right now it's only reading from date1 - i'm not sure how to do the IF THEN ...
this is what i have now but it's only reading Date1...
CheckDate: DateAdd("m",-6,DateAdd("yyyy",5,[Date1]))