I've found a few old posts related to this, but no unequivocal explanation:
I have a simple continuous form based on a table with an integer field [myInt]. I made a control "myInt" with source [myInt]. In the form header, I made another control "mySum" with source =sum([myInt]). That works just fine.
Now I add a second control "myInt2" to the form detail, with source =[myInt]. This just repeats exactly what is in the "myInt" control. Again, works fine.
Finally, I add a second control "mySum2" to the form header with source =sum([myInt2]). This control returns #Error. Not only that, but the original "mySum" control *also* returns #Error.
Can someone explain why aggregate functions don't seem to work on calculated controls?
I have a simple continuous form based on a table with an integer field [myInt]. I made a control "myInt" with source [myInt]. In the form header, I made another control "mySum" with source =sum([myInt]). That works just fine.
Now I add a second control "myInt2" to the form detail, with source =[myInt]. This just repeats exactly what is in the "myInt" control. Again, works fine.
Finally, I add a second control "mySum2" to the form header with source =sum([myInt2]). This control returns #Error. Not only that, but the original "mySum" control *also* returns #Error.
Can someone explain why aggregate functions don't seem to work on calculated controls?