I hope I have posted in the right forum, if not I apologize and would appreicate someone letting me know the correct forum.
Otherwise here is the problem I need help with:
I'm working to develop a form that has several subforms.
Among the fields one of the subforms which is a continuous form I have the following fields:
[cube] - its control source is set to a text field in another subforms footer that is an unbound text box that sums the total cube feet associated with a particular record.
[rate] – is a field in the same query that drives the subform that it is on – [rate] format is currency and holds a dollar amount per cubic foot
[MiniumCharge] is a field in the same query that drives the subform its format is also currency and it holds a dollar amount associated with minimum billing if the [rate] x [cube] is less than the minimum. In other words if [rate]*[cube] is less that the mimimum the [billingamount] is the minimum, else it [rate]*cube].
[BillingAmount] field's control source is “ =IIf([CUBE]*[RATE]<[MinimumCharge],[MinimumCharge],[Cube]*[Rate])”
All of the above seems to work correctly. However:
I have an Unbound Text Box: in the same Subform's footer: control source is set to:
=Sum(Nz([BillingAmount],0))
The above returns $0.00
I have tried other combinations of the sum expression. =Sum([BillingAmount]) returns a blank field
I really need the sum of the [BillingAmount] as its result has to be used/display in other parts of the dbase.
I hope someone can help me to get the [BillingAmount] field to total.
Thanks in advance for any suggestions or comments.
Larry G.