Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Other Forums
 MS Access
 sum in report

Author  Topic 

kaus
Posting Yak Master

179 Posts

Posted - 2003-02-10 : 14:21:08
is there a way to filter a sum column in a report so that it sums all but like the first record ?? I have a report with a textbox having a control source of a column from a query, and another text box that is a sum of the other text box -- I'm hoping to be able to filter out items in the first text box so that I can use only some of them for the sum.

Thanks

Pete

jsmith8858
Dr. Cross Join

7423 Posts

Posted - 2003-02-10 : 16:21:09
Try setting your totals text box to:

=SUM([Field]) - First([Field])

let me know if that works for you.

- Jeff
Go to Top of Page

kaus
Posting Yak Master

179 Posts

Posted - 2003-02-10 : 19:42:50
quote:

Try setting your totals text box to:

=SUM([Field]) - First([Field])

let me know if that works for you.

- Jeff


Thanks - That works great -- So I guess you could use second, etc ..? First works in my instance though

Much appreciated

Pete



Go to Top of Page

jsmith8858
Dr. Cross Join

7423 Posts

Posted - 2003-02-11 : 09:02:50
unfortunately, no, only FIRST() and LAST() are valid functions in these cases (in addition to the standard MIN, MAX, SUM, etc).

glad to be of help.


- Jeff
Go to Top of Page
   

- Advertisement -