Hello,
Can any one help me with the syntax to calculate the totals of a field? There
are three fields in the query; [XFER/ORDER] which contains the data "O" or "T",
the other [TOTAL LINES] which contains (total lines of "O" or "T") for a
specific [DATE]. I want to display in text boxes the sum of all total lines
while [XFER/ORDER]="O" and the same for [XFER/ORDER]="T". I have tried
=Sum([TOTAL LINES])(IIF([XFER/ORDER])="O",1,0))) but it didn't work.
Sample Data:
Date XFER/ORDER TOTAL LINES
8/9/04 O 50
8/8/04 T 15
8/5/04 O 12
8/3/04 T 5
REPORT:(This is what I want the syntax for please)
TOTAL LINES OF "O" = 62
TOTAL LINES OF "T" = 20
Thanks.