Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

summing on two conditions...

Status
Not open for further replies.

adsfx

Programmer
Jun 4, 2003
237
0
0
GB
Hi,
at the moment on a form i sum on condition using
=Sum(IIf([banktick]=-1,[vat],0))
but...
i want to sum on two conditions
[banktick]= -1 & [cattype]=1

cheers MG
 
Sum(IIf([banktick]=-1 and [cattype]=1,[vat],0))

 
yes !
it works :=Sum(IIf([M_FDATA___]=2;[QTT_______];0))

regards
rg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top