Hello all,
After couple of weeks of using the DB one of the reports which load up automatically when main form opens, stopped working, and gives an error message:
the expression is typed in incorrectly or is too complex....
report has 13 txtboxes, in every single one of them ive placed:
for each month, obviously the number changes, 1, 2, 3, 4....
this in my query:
I have 7 of those report, all bases on separate transformed query, but all those queries are based on 2 main ones.
Found a hint on the web, instead of having 6 separate reports on 1 form, replace it with a main report and subreports in it. I have done it but still exactly same error.
The query it self, load up without any error, and gives correct calculations.
The report can load up without error if i leave data in DETAIL section, but I don't want it there, i just need summary, the calculations.
Any advice on this issue please.
After couple of weeks of using the DB one of the reports which load up automatically when main form opens, stopped working, and gives an error message:
the expression is typed in incorrectly or is too complex....
report has 13 txtboxes, in every single one of them ive placed:
Code:
=sum([1])
this in my query:
Code:
TRANSFORM sum(iif(tTaskDueDate>=tTaskComplDate and tTaskTypeFK=2,1,0))/sum(iif(tTaskTypeFK=2,1,0)) AS PercPREV
SELECT month(tTaskDueDate) AS PREVmonth, sum(iif(tTaskTypeFK=2,1,0)) AS CountPREV, sum(iif(tTaskDueDate>=tTaskComplDate and tTaskTypeFK=2,1,0)) AS onTimePREV, sum(iif(tTaskDueDate>=tTaskComplDate and tTaskTypeFK=2,1,0))/sum(iif(tTaskTypeFK=2,1,0)) AS dividePREV
FROM Q_ALL_task
WHERE qaDeptFK=Forms!F_CompLvl.cboDeptStats OR Forms!F_CompLvl!cboDeptStats IS NULL
GROUP BY month(tTaskDueDate)
PIVOT month([tTaskDueDate])
IN (1,2,3,4,5,6,7,8,9,10,11,12);
I have 7 of those report, all bases on separate transformed query, but all those queries are based on 2 main ones.
Found a hint on the web, instead of having 6 separate reports on 1 form, replace it with a main report and subreports in it. I have done it but still exactly same error.
The query it self, load up without any error, and gives correct calculations.
The report can load up without error if i leave data in DETAIL section, but I don't want it there, i just need summary, the calculations.
Any advice on this issue please.