SUM not working in form (1 Viewer)

thudson

Old Programmer
Local time
Today, 23:56
Joined
Apr 29, 2011
Messages
68
This should work, but doesn't:banghead:
Code:
=[Total Costs]*[Qty],<<< this extends the the line total

=Sum([Total Costs]*[Qty]), <<<this should add up all of the line totals.

The Total Costs*Qty Text box is called 'LineTotal', so I also tried Sum([LineTotal]).
Both don't work.
Can't see whats wrong!
Can anyone see where I'm going wrong?
 

missinglinq

AWF VIP
Local time
Today, 18:56
Joined
Jun 20, 2003
Messages
6,423
Is [Total Costs] an entered value...or is it also Calculated from other Controls? It sounds like the latter, given its name.

If it is Calculated, you need to use that Expression times QTY.

Linq ;0)>
 
Last edited:

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 06:56
Joined
May 7, 2009
Messages
19,247
you put your Grand Total unbound textbox to the Form's Footer Section.
 

thudson

Old Programmer
Local time
Today, 23:56
Joined
Apr 29, 2011
Messages
68
Don't know what was going on, but I had saved the changes several times as I changed the formula. I reopened the database after closing it and voila it calculated the total. I was tearing my hair out (haven't got much now), was getting frustrated after looking at this for an hour or more!
 

Users who are viewing this thread

Top Bottom