Conditional Sum

G

Guest

I have a continuos form the key items of which are [dblContribution] and
[dteCeased]

I want to sum contributions currently being paid ie. [dblContribution] where
[dteCeased] is blank, what's the best way to go about it?

I've tried setting up an additional text box on the form (called txtCrntCbn)
with the formula =IIf(IsNull([dteCeased]),[txtContribution],0) and I have
=Sum([txtCrntCbn]) in the form footer however all I get for the Sum() result
is #Error


This may be connected to a problem I had about 10 posts ago in this forum
entitled "Sum() in Form Footer" I seem to have a lot of problems with Sum()
in continuous forms - it functions rather arbitrarilly for me :( I'd be
grateful if anyone has any ideas why this is.

Im running Windows and Access 2000

Thanks in advance for your help

Simon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Summing a complex formula 1
Sum(iif(...)) Help 8
Sum If function in textbox 0
Dlookup Sum 2
SUM on a Form 2
Conditional Sum 4
Access Daily Entry with multiple entries per field 0
sum lookup 3

Top