A
Andrew Backer
Hello,
I am having a problem with summary fields in my subforms. I have quite
a few of these, and I use them to do rollups, totals, and such where it
take to long to calculte them in the database.
Basically... In the form footer I have textboxes with code like this :
=Sum( [IsValid] * [LineTotal] )
=Sum( iif([IsValid]=1, [LineTotal], 0 ) )
=Sum( 3*5 )
It's this type of code, or variations on it. I put the 3*5 in there
just to show that it would go boom on that. However, if I remove the
'sum', it works ok. These work :
= IsValid*LineTotal
= iif(....)
= sum(LineTotal) '-- notice, no complex expression.
Any idea why this doesn't work, and a possible way around it? I don't
want to do a physical recalculation each time I add a lineitem or other
calculation.
Thanks,
Andrew Backer
I am having a problem with summary fields in my subforms. I have quite
a few of these, and I use them to do rollups, totals, and such where it
take to long to calculte them in the database.
Basically... In the form footer I have textboxes with code like this :
=Sum( [IsValid] * [LineTotal] )
=Sum( iif([IsValid]=1, [LineTotal], 0 ) )
=Sum( 3*5 )
It's this type of code, or variations on it. I put the 3*5 in there
just to show that it would go boom on that. However, if I remove the
'sum', it works ok. These work :
= IsValid*LineTotal
= iif(....)
= sum(LineTotal) '-- notice, no complex expression.
Any idea why this doesn't work, and a possible way around it? I don't
want to do a physical recalculation each time I add a lineitem or other
calculation.
Thanks,
Andrew Backer