ConfusedNAccess
Technical User
I'm doing something wrong here..
looking at 3 date/time fields:
1)RedCalcDate
2)BlueCalcDate
I'm querying for the [lastcalc] or the most recent date out of the calc datefields for that record...and all records last calc date in the current month.. which I got that fine, but not I'm looking to show what type of calc for each corresponding date or both...
*example data*
redcalcdate: 4/1/2007 09:23:15
bluecalcdate: 4/7/2007 08:35:25
Iif((datevalue([redcalcdate]=[lastcalc] and datevalue([bluecalcdate]<>lastcalcdate,datevalue([redcalcdate]),datevalue([bluecalcdate] as CalcType
the above doesn't look right to me.. i'll just say what I'm trying to do...
I want to see the most recent calc type.. so
if redcalc = [lastcalc] then show red calc
if bluecalc = [lastcalc] then show blue calc
if redcalc and blue calc = lastcalc show both
lastcalc which is to show the most recent is defined as:
LastCalc: IIf(DateValue([redcalcdate])>DateValue([bluecalcDate]),DateValue([redcalc]),DateValue([bluecalcdate]))
how can i simplify all of this??? should Max be used instead??
looking at 3 date/time fields:
1)RedCalcDate
2)BlueCalcDate
I'm querying for the [lastcalc] or the most recent date out of the calc datefields for that record...and all records last calc date in the current month.. which I got that fine, but not I'm looking to show what type of calc for each corresponding date or both...
*example data*
redcalcdate: 4/1/2007 09:23:15
bluecalcdate: 4/7/2007 08:35:25
Iif((datevalue([redcalcdate]=[lastcalc] and datevalue([bluecalcdate]<>lastcalcdate,datevalue([redcalcdate]),datevalue([bluecalcdate] as CalcType
the above doesn't look right to me.. i'll just say what I'm trying to do...
I want to see the most recent calc type.. so
if redcalc = [lastcalc] then show red calc
if bluecalc = [lastcalc] then show blue calc
if redcalc and blue calc = lastcalc show both
lastcalc which is to show the most recent is defined as:
LastCalc: IIf(DateValue([redcalcdate])>DateValue([bluecalcDate]),DateValue([redcalc]),DateValue([bluecalcdate]))
how can i simplify all of this??? should Max be used instead??