sum in forms

  • Thread starter Thread starter SHR
  • Start date Start date
S

SHR

Hi,

can you tell me please why in my form this line is wrong :
TOTAL =
SUM(TrueFalse(Form!F_SALARIE2!salbrut>[plafond];[plafond];Form!F_SALARIE2!sa
lbrut-
[plancher])* [txpat])

and this second line is good
TOTAL =
SUM(2000>[plafond];[plafond];2000-[plancher])* [txpat])

whereas Form!F_SALARIE2!salbrut = 2000

thanks
 
Sorry
my 2nd line is
TOTAL =
SUM(TrueFalse(2000>[plafond];[plafond];2000-[plancher])* [txpat])
 
SHR said:
Sorry
my 2nd line is
TOTAL =
SUM(TrueFalse(2000>[plafond];[plafond];2000-[plancher])* [txpat])

SHR said:
Hi,

can you tell me please why in my form this line is wrong :
TOTAL =
SUM(TrueFalse(Form!F_SALARIE2!salbrut>[plafond];[plafond];Form!F_SALARIE2!sa
lbrut-
[plancher])* [txpat])

and this second line is good
TOTAL =
SUM(2000>[plafond];[plafond];2000-[plancher])* [txpat])

whereas Form!F_SALARIE2!salbrut = 2000

thanks

Are any of the fields referred to already calculated? You can't use calc'd
fields in other calc'd fields on a form

I find it easier to do the calcs in queries rather than on forms.
 

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

Back
Top