kirstenlargent
Technical User
I have a Form based on a Select query that pulls all Locations in a certain area. The user enters Square Footage (fieldname “Measured SF”) for each Location in the Detail Section of the form, and the Total Square Footage (fieldname “TotalMeasured”) entered is displayed in the Form Footer. I then have a Percent of Total Square feet calculated field in the Detail Section (fieldname “PercentMeasured”), which simply divides the Square Footage entered by the Total Square Footage - calculation is “=([Measured SF]/[TotalMeasured])”.
All this works fine, until I try to total up the PercentMeasured field in the Form Footer – I get an #ERROR in the calculated total field, and also errors in my calculated PercentMeasured and TotalMeasured fields.
I have read the help file, and it says I can’t use the name of a calculated control in an aggregate function, I need to repeat the expression in the calculated control instead. So instead of “=SUM ([PercentMeasured])”, I tried “=SUM ([Measured SF]/[TotalMeasured])”, but still no luck. I even tried spelling out the whole form name instead of just the fields names in the control, but that didn’t work either. And I made sure it was a number format, using Cint, but that didn’t help either.
HELP!
All this works fine, until I try to total up the PercentMeasured field in the Form Footer – I get an #ERROR in the calculated total field, and also errors in my calculated PercentMeasured and TotalMeasured fields.
I have read the help file, and it says I can’t use the name of a calculated control in an aggregate function, I need to repeat the expression in the calculated control instead. So instead of “=SUM ([PercentMeasured])”, I tried “=SUM ([Measured SF]/[TotalMeasured])”, but still no luck. I even tried spelling out the whole form name instead of just the fields names in the control, but that didn’t work either. And I made sure it was a number format, using Cint, but that didn’t help either.
HELP!