Anj
Posts: 13
|
Posted: 11/26/2009, 1:30 AM |
|
Well I done my brain in.
Here it is
I have a report with grouping that currently have database (access) derived totals and counts.
I would like to divide the totals by the counts (I know this looks like an average at first glance but the count for the average is all records, I just want to average non zero records).
Compiler Error Message: BC30311: Value of type 'System.Web.UI.Control' cannot be converted to 'Integer'. Source Error:
Line 208: NatSumVar = CType(e.Item.FindControl("BenchmarkAuditStateReportLabel1"),Integer)
Line 209: NatCountVar = Ctype(e.Item.FindControl("BenchmarkAuditStateSum_NatCount2"),Integer)
Line 210: NatAvgVar = NatSumVar / NatCountVar
Help ASAP would be greatly appreciated
|