georgesOne
Technical User
Good morning,
I have 4 textboxes to run the sum of four fields in the same table:
As can be seen the code is almost the same for all four fields. All have the same datatype and are indexed.
However, the first and the last calculation are fast, while the second and third calculations run terribly slow...
Any tip and/or explanation?
Thanks, Georges
I have 4 textboxes to run the sum of four fields in the same table:
Code:
tbxSumSolid=DSum("[Solid%]","tbl_FormulationDetails","Formulation = '" & Forms!frm_Formulation.tbxFormulation & "' And Active = True")
tbxSumSolvent=DSum("[Solvent%]","tbl_FormulationDetails","Formulation = '" & Forms!frm_Formulation.tbxFormulation & "' And Active = True")
tbxSumToUse=DSum("[ToUse]","tbl_FormulationDetails","Formulation = '" & Forms!frm_Formulation.tbxFormulation & "' And Active = True")
tbxSumActual=DSum("[Actual]","tbl_FormulationDetails","Formulation = '" & Forms!frm_Formulation.tbxFormulation & "' And Active = True")
As can be seen the code is almost the same for all four fields. All have the same datatype and are indexed.
However, the first and the last calculation are fast, while the second and third calculations run terribly slow...
Any tip and/or explanation?
Thanks, Georges