tnguyen315
MIS
Hello all,
I'm using access 2010, I would like to compare 2 dates to get the status...
Date1, Date1_Inserted, Date2, Date2_Inserted.
If Date1 = blank and Date2= blank then group1
If Date1 > Date2 then group1
If Date1< Date2 then group2
If Date1 <> Blank and Date2 = blank then group1
If Date1= Blank and Date2 <> blank then group2
If Date1 = Date2 then need to compare Date1_Inserted and Date2_Inserted...if Date1_Inserted > Date2_Inserted then group1
If Date1 = Date2 then need to compare Date1_Inserted and Date2_Inserted...if Date1_Inserted < Date2_Inserted then group2
I would like to compare Date1 and Date2 and get result like this...
Below is the result
Date1 Date1_Inserted Date2 Date2_Inserted Result
12/17/2011 12/17/2011 8:54:34 AM 12/17/2011 12/17/2011 8:43:04 AM Group1
9/28/2011 9/28/2011 4:40:14 PM 10/3/2011 10/4/2011 11:48:23 AM Group2
9/23/2011 9/23/2011 11:33:40 AM 9/27/2011 9/28/2011 10:43:16 AM Group2
Group1
9/11/2011 9/7/2011 11:44:13 AM Group1
11/4/2011 11/4/2011 12:27:05 PM Group2
Please help, I'm very appreciated.
I'm trying to work on it but I couldn't get any right results.
Thank you very much.
12/28/2011 12/28/2011 1:40:14 PM 10/3/2011 10/4/2011 11:48:23 AM Group1
I'm using access 2010, I would like to compare 2 dates to get the status...
Date1, Date1_Inserted, Date2, Date2_Inserted.
If Date1 = blank and Date2= blank then group1
If Date1 > Date2 then group1
If Date1< Date2 then group2
If Date1 <> Blank and Date2 = blank then group1
If Date1= Blank and Date2 <> blank then group2
If Date1 = Date2 then need to compare Date1_Inserted and Date2_Inserted...if Date1_Inserted > Date2_Inserted then group1
If Date1 = Date2 then need to compare Date1_Inserted and Date2_Inserted...if Date1_Inserted < Date2_Inserted then group2
I would like to compare Date1 and Date2 and get result like this...
Below is the result
Date1 Date1_Inserted Date2 Date2_Inserted Result
12/17/2011 12/17/2011 8:54:34 AM 12/17/2011 12/17/2011 8:43:04 AM Group1
9/28/2011 9/28/2011 4:40:14 PM 10/3/2011 10/4/2011 11:48:23 AM Group2
9/23/2011 9/23/2011 11:33:40 AM 9/27/2011 9/28/2011 10:43:16 AM Group2
Group1
9/11/2011 9/7/2011 11:44:13 AM Group1
11/4/2011 11/4/2011 12:27:05 PM Group2
Please help, I'm very appreciated.
I'm trying to work on it but I couldn't get any right results.
Thank you very much.
12/28/2011 12/28/2011 1:40:14 PM 10/3/2011 10/4/2011 11:48:23 AM Group1