Howdy all,
I'm doing up the finishing touches to a Psychosocial Assessment tool and trying to get the stats report to work.
After entering a criteria of some sort on one of my screens, the system goes through and searches for matches and counts up the figures, then dumps them in a table. Being new to report statistics - it is driving me nuts.
The fields are integers.
If for example I lay out:
Hallu Narc Alco Sed Hypn Total
Wkly 7 2 19 1 3 Expre field
Mnthly 4 8 11 2 5 Expre field
Total Exprn fields along here
Percent Exprn fields along here
When I use an expression field for the "total" and "%",
it works when I preview the report, but when I run it, it
gives an invalid function message and so on.
In the Expression field dialog, I put:
table1.Hallu+table1.Narc+table1.Alco...
Am I doing this wrong? Even if I just do "hallu+Narc+alco" and preview it, it works but not in runtime.
Could someone please tell me how to put in totals that work without pre-totalling outside the report? Thanks
Allen
PS using Delphi 5 Professional and the latest QReport components.
I'm doing up the finishing touches to a Psychosocial Assessment tool and trying to get the stats report to work.
After entering a criteria of some sort on one of my screens, the system goes through and searches for matches and counts up the figures, then dumps them in a table. Being new to report statistics - it is driving me nuts.
The fields are integers.
If for example I lay out:
Hallu Narc Alco Sed Hypn Total
Wkly 7 2 19 1 3 Expre field
Mnthly 4 8 11 2 5 Expre field
Total Exprn fields along here
Percent Exprn fields along here
When I use an expression field for the "total" and "%",
it works when I preview the report, but when I run it, it
gives an invalid function message and so on.
In the Expression field dialog, I put:
table1.Hallu+table1.Narc+table1.Alco...
Am I doing this wrong? Even if I just do "hallu+Narc+alco" and preview it, it works but not in runtime.
Could someone please tell me how to put in totals that work without pre-totalling outside the report? Thanks
Allen
PS using Delphi 5 Professional and the latest QReport components.