EdwardSalas
Technical User
Afternoon all,
I've got an interesting one here...I've got a form that is tied to query (very simple). On the header portion of the form I have a calculated field that sums one of the fields.
Here is the problem
I want to apply a filter and determine a % share (Sum of Calc Field filtered / Sum of Total unfiltered) on a click of a command button. The command button applies a filter and writes the 'Sum of Total Unfiltered' into a temp field. However, the code runs so quick that there is no value in the 'Sum of Calc Field' because Access is trying to perform the calculation. I've tried Requerying and that also doesn't work. I'm tempted to use a loop but I don't care to be locked into a timed event (because some categories are larger than others, it may need a longer processing time).
any help would be appreciated!
Eddy
I've got an interesting one here...I've got a form that is tied to query (very simple). On the header portion of the form I have a calculated field that sums one of the fields.
Here is the problem
I want to apply a filter and determine a % share (Sum of Calc Field filtered / Sum of Total unfiltered) on a click of a command button. The command button applies a filter and writes the 'Sum of Total Unfiltered' into a temp field. However, the code runs so quick that there is no value in the 'Sum of Calc Field' because Access is trying to perform the calculation. I've tried Requerying and that also doesn't work. I'm tempted to use a loop but I don't care to be locked into a timed event (because some categories are larger than others, it may need a longer processing time).
any help would be appreciated!
Eddy