Hello guys,
I have written the following expression in a Ms Querry. I have a table called 711PMTCTData which has a Look up field called MonthReported with Text as data type. the data entered in that field are the abbreviations (Jan, Feb, Mar upto Dec). I would like the expression to return in a calcuated field the quarters Q1,Q2,Q3,Q4; but the expression below only returns Q1 irrespective of the month entered.
Qtr Reported: IIf([711PMTCTData]![MonthReported]="Oct" Or "Nov" Or "Dec","Q1",IIf([711PMTCTData]![MonthReported]="Jan" Or "Feb" Or "Mar","Q2",IIf([711PMTCTData]![MonthReported]="Apr" Or "May" Or "Jun","Q3","Q4")))
a).Would it make a difference if i used Date instead of Text as the data type in the field called MonthReported?
b).How should the expression be written?
Kindly assist.
Thank you.
I have written the following expression in a Ms Querry. I have a table called 711PMTCTData which has a Look up field called MonthReported with Text as data type. the data entered in that field are the abbreviations (Jan, Feb, Mar upto Dec). I would like the expression to return in a calcuated field the quarters Q1,Q2,Q3,Q4; but the expression below only returns Q1 irrespective of the month entered.
Qtr Reported: IIf([711PMTCTData]![MonthReported]="Oct" Or "Nov" Or "Dec","Q1",IIf([711PMTCTData]![MonthReported]="Jan" Or "Feb" Or "Mar","Q2",IIf([711PMTCTData]![MonthReported]="Apr" Or "May" Or "Jun","Q3","Q4")))
a).Would it make a difference if i used Date instead of Text as the data type in the field called MonthReported?
b).How should the expression be written?
Kindly assist.
Thank you.