You may use Tempvars (temporary Global Variables) to store the value and use it in TextBoxes on Forms, Reports, or in VBA.
Example Syntax: Tempvars.Add VariableName, Value
Tempvars.Add "Total",DSum("Amt","QueryName")
To display the Value in Variable 'Total' - assuming the value in variable...