Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Jul 2001
    Posts
    280
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Summing up in a report (Access 2000)

    Summing up in a report

    I have a report called invoice but i cannot sum up the extended price of the products and i would like to ask for a help.My report is called invoice, and in the undrelying query i have a field
    called ExtendedPrice with the following expression:

    ExtendedPrice:CCur([OrderDetails].[UnitPrice]*[Quantity]*(1-[Discount])

    /100)*100
    and i works fine. The control in the report that has a record source Extended price is called Subtotal.It is placed in the Detail Section.In the section OrderIdFooter,of the report, where i am supposed to sum
    the results,i have a control named InvoiceSubtotal.In the control source of the control named InvoiceSubtotal i have written the following
    = Sum( [ subtotal] )
    but i receive the following error:"Enter parameter value"

  2. #2
    Gold Lounger
    Join Date
    Feb 2001
    Location
    Sint Niklaas, Belgium
    Posts
    2,778
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Summing up in a report (Access 2000)

    Marcus,

    You should use :
    = Sum([ExtendedPrice])

    You are summing the field, not the control.
    Francois

  3. #3
    Gold Lounger
    Join Date
    Jun 2001
    Location
    Crystal Beach, FL, Florida, USA
    Posts
    3,436
    Thanks
    1
    Thanked 34 Times in 34 Posts

    Re: Summing up in a report (Access 2000)

    I generally find Access reports work best when you do everything in the query. So, define a field in the query; in QBE grid, it would look like this:
    ExtendPrice: Quantity*Price

    In SQL statement, you would use Quantity*Price As ExtendedPrice.

    You can then place ExtendedPrice onto your report in detail section, and use =Sum(ExtendedPRice) as controlsource of a field in footers.
    Mark Liquorman
    See my website for Tips & Downloads and for my Liquorman Utilities.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •