Hi. I have a report which has "WeekOf" as a Sorting/Group Expression. The report is bound to a query and the "WeekOf" field is formatted as follows within that query...
The problem is that within the report's Sorting/Grouping I cannot specify that the WeekOf field should GROUP ON Week. The only Group On options for this field are "Each Value" & "Prefix Characters", as if this is a non-date field. What must I do to either the report or the query to make this report recognize this field as a Date field so that I can Group On Week? Thanks.
--
Not until I became a Network Administrator did the error message "See your Network Administrator for assistance" become petrifying.
Code:
Format(IIF(Format(DateAdd("d",-Weekday([ECD_CutOff]),[ECD_CutOff])+1,
"Short Date")<IIF(Weekday(Date())=1,Date()+6,IIF(Weekday(Date())=2,Date()+5,
IIF(Weekday(Date())=3,Date()+4,IIF(Weekday(Date())=4,Date()+3,
IIF(Weekday(Date())=5,Date()+2,IIF(Weekday(Date())=6,Date()+1,
IIF(Weekday(Date())=7,Date(),))))))),IIF(Weekday(Date())=1,Date(),
IIF(Weekday(Date())=2,Date()+-1,IIF(Weekday(Date())=3,Date()+-2,
IIF(Weekday(Date())=4,Date()-3,IIF(Weekday(Date())=5,Date()-4,
IIF(Weekday(Date())=6,Date()-5,IIF(Weekday(Date())=7,Date()-6,
))))))),Format(DateAdd("d",-Weekday([ECD_CutOff]),[ECD_CutOff])+1,
"Short Date")),"Short Date") AS WeekOf
The problem is that within the report's Sorting/Grouping I cannot specify that the WeekOf field should GROUP ON Week. The only Group On options for this field are "Each Value" & "Prefix Characters", as if this is a non-date field. What must I do to either the report or the query to make this report recognize this field as a Date field so that I can Group On Week? Thanks.
--
Not until I became a Network Administrator did the error message "See your Network Administrator for assistance" become petrifying.