Thanks for the suggestion Rob, but unless I'm brain dead, (quite feasable at the minute,I know ), there's no way to construct this using an Iif, ' least that I can think of
On your form are you showing multiple records (continuos view) or just plain form view? As another suggestion, in the On_Current event or whatever is applicable could you not count the number of times KeyID appears and if the count =1 then perform your calculation else return a zero etc.
It's a datasheet, the problem is that say for one invoice there may be several payments listed, on the form there are also several invoices, I just need to display the Sum of the invoices issued. I suspect the only way is with vba.