potts
Registered User.
- Local time
- Today, 00:07
- Joined
- Jul 24, 2002
- Messages
- 87
I've tried to calculate the total sum of key controls contained in sub reports on a form. I have used this method several times before, but now something weird is happening.
The calculation is contained in an unbound control on the main form and is as follows:
=IIf(IsNumeric([Invoice3Access].[Report]![SubAccessFee])=True,[Invoice3Access].[Report]![SubAccessFee],0)+IIf(IsNumeric([tblCustomer].[Report]![SubSupFee])=True,[tblCustomer].[Report]![SubSupFee],0)+IIf(IsNumeric([Invoice1Charge].[Report]![Charge])=True,[Invoice1Charge].[Report]![Charge],0)+IIf(IsNumeric([Invoice1Prog].[Report]![SubProgFee])=True,[Invoice1Prog].[Report]![SubProgFee],0)
While this has worked fine before, in exactly the same circumstances and format, when customers are opened together the first report is correct with the unbound calculated field for subsequent customers displaying the total expected for the previous customer.
eg
Customer 1 expected total = £20 displayed total = £20
Customer 2 expected total = £30 displayed total = £20
Customer 3 expected total = £27 displayed total = £30
Does anyone know what might be causing this?
The calculation is contained in an unbound control on the main form and is as follows:
=IIf(IsNumeric([Invoice3Access].[Report]![SubAccessFee])=True,[Invoice3Access].[Report]![SubAccessFee],0)+IIf(IsNumeric([tblCustomer].[Report]![SubSupFee])=True,[tblCustomer].[Report]![SubSupFee],0)+IIf(IsNumeric([Invoice1Charge].[Report]![Charge])=True,[Invoice1Charge].[Report]![Charge],0)+IIf(IsNumeric([Invoice1Prog].[Report]![SubProgFee])=True,[Invoice1Prog].[Report]![SubProgFee],0)
While this has worked fine before, in exactly the same circumstances and format, when customers are opened together the first report is correct with the unbound calculated field for subsequent customers displaying the total expected for the previous customer.
eg
Customer 1 expected total = £20 displayed total = £20
Customer 2 expected total = £30 displayed total = £20
Customer 3 expected total = £27 displayed total = £30
Does anyone know what might be causing this?