Results 1 to 7 of 7

Thread: crystal question

  1. #1

    Thread Starter
    Frenzied Member EyeTalion's Avatar
    Join Date
    Jul 2000
    Location
    New York
    Posts
    1,075

    crystal question

    In my report I have a group with data that is in my header table and in the detail portion of the report I have data from my detail table. Header data is a receipt total and Detail data is all the items bought...the problem I'm having is when I sum up my items. The items are in the detail portain (and detail table) and the total is fine, but the sales tax is the header table...so for every detail item the sales tax gets added...is there a way I can calculate this so the sales tax is only input once...maybe a sub-report?...any suggestions?

    thanks
    It's tough being an unhandled exception...

    ___________
    VB.NET 2008
    VB.NET 2010
    ORACLE 11g
    CRYSTAL 11

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758
    so for every detail item the sales tax gets added...
    Added to what. I am not sure I follow your question.

    Are you trying to show the Sales Tax per item or just display the total tax of all items. The group footer would be a place to show the totals per group.

  3. #3

    Thread Starter
    Frenzied Member EyeTalion's Avatar
    Join Date
    Jul 2000
    Location
    New York
    Posts
    1,075
    I need to add the sales tax amount to the amount of all the items bought.
    It's tough being an unhandled exception...

    ___________
    VB.NET 2008
    VB.NET 2010
    ORACLE 11g
    CRYSTAL 11

  4. #4
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758
    Create a formula that calculates the Sales Tax for each item. Place this formula in the details section. You can then Sum the formula.

    The formula would be something like

    {DetailTable.ItemAmount} * .075

  5. #5

    Thread Starter
    Frenzied Member EyeTalion's Avatar
    Join Date
    Jul 2000
    Location
    New York
    Posts
    1,075
    that's what I'm doing now, but when theres more than one detail record, the sales tax with get added multiple times.
    It's tough being an unhandled exception...

    ___________
    VB.NET 2008
    VB.NET 2010
    ORACLE 11g
    CRYSTAL 11

  6. #6
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758
    ???? Crystal processes each Detail record one at a time.

    If the formula is in the detail section it would show the Sales Tax for each item.

  7. #7
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758
    Never mind. Its Monday and I am a moron.

    Does your report use the Group Footer section? You could place a Sum of all detail items in this section, suppress/hide it and then create a formula that contains


    @SumofDetailItems + {HeaderTable.SalesTax}

Posting Permissions

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



Click Here to Expand Forum to Full Width