S
subs
paid amt transport amt Difference
22 23 -1
22 23
45 42 3
45 42
45 42
28 27 1
24 21 3
24 21
sum 6
i have 2 columns already in my access report - i.e paid amt and
transport amt. I want to add another column either in the query or
report called as difference and basically this column should calculate
the difference between paid amt and transport amt only for the first
set of nos. For example above example, 22 and 23 is present in two
rows. Difference should be calculated only in first row and not in
second row. Similarly when the set changes, i.e 45 and 42, difference
should be calculated only in the first row. This has to be done for
the entire set. Sum should be calculated at the end for the
difference column . How can i create this differenc colum in a report
as well as in the underlying query? Pls help thanks
22 23 -1
22 23
45 42 3
45 42
45 42
28 27 1
24 21 3
24 21
sum 6
i have 2 columns already in my access report - i.e paid amt and
transport amt. I want to add another column either in the query or
report called as difference and basically this column should calculate
the difference between paid amt and transport amt only for the first
set of nos. For example above example, 22 and 23 is present in two
rows. Difference should be calculated only in first row and not in
second row. Similarly when the set changes, i.e 45 and 42, difference
should be calculated only in the first row. This has to be done for
the entire set. Sum should be calculated at the end for the
difference column . How can i create this differenc colum in a report
as well as in the underlying query? Pls help thanks