M
Mike Bennett
I'm getting the message "Multi-level group-by clause is
not allowed in a subquery."
The query that the report is based on is very complex. One
field is calculated based on the value of other fields in
the query. If I try to use this calculated field, then I
get this error. If I remove the field from the report,
then the error goes away.
The value of the calculated field is "IIF([Num] = 1,
(SELECT Table1.Field1 FROM Table1 WHERE Table1.Field2 = val
(Table2.Field1) AND Table1.Field3 = Table2.Field3,
(SELECT Table1.Field1 FROM Table1 WHERE Table1.Field2 = val
(Table2.Field1) AND Table1.Field3 = 'M') As CalcField.
Why, when I use CalcField in my report's detail section,
do I get the "Multi-level Group-By clause" error mentioned
above? How can I do this differently?
Thanks!
Mike
not allowed in a subquery."
The query that the report is based on is very complex. One
field is calculated based on the value of other fields in
the query. If I try to use this calculated field, then I
get this error. If I remove the field from the report,
then the error goes away.
The value of the calculated field is "IIF([Num] = 1,
(SELECT Table1.Field1 FROM Table1 WHERE Table1.Field2 = val
(Table2.Field1) AND Table1.Field3 = Table2.Field3,
(SELECT Table1.Field1 FROM Table1 WHERE Table1.Field2 = val
(Table2.Field1) AND Table1.Field3 = 'M') As CalcField.
Why, when I use CalcField in my report's detail section,
do I get the "Multi-level Group-By clause" error mentioned
above? How can I do this differently?
Thanks!
Mike