Results 1 to 3 of 3

Thread: [Resolved] Displaying variable in header instead of footer

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2006
    Posts
    50

    [Resolved] Displaying variable in header instead of footer

    Group 1 in my report puts customer orders together.
    Group 2 puts order items together.

    Each item has it's own unique Tracking Number. I put together a simple formula that counts the number of tracking numbers. If they are all the same for an order, then I have it display that one tracking number. Otherwise I have it print text saying 'Multiple #s'. Question is...can I get that formula to display in the header at all? If I simply put in a new formula to display the variables, then it shows the tracking number from the section above. Is there any way to get that number to show in the header from the section that's below?
    Last edited by BIGGY; Aug 17th, 2006 at 12:44 PM.

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: Displaying variable in header instead of footer

    A formula that contains something like this should work.
    Code:
    If DistinctCount ({[Order Details].ProductID}, {Orders.OrderID}) > 1 Then
      "Multiple Products"
    Else
      Cstr({[Order Details].ProductID})
    I use the Northwind database : Customers, Orders, Order Details tables.
    Group Customers.CompanyName
    Group Orders.OrderID
    Details - some fields from the Order Details table

    Created a formula with the above code and placed it in the Orders Group Header. It printed as expected.

  3. #3

    Thread Starter
    Member
    Join Date
    Mar 2006
    Posts
    50

    Re: Displaying variable in header instead of footer

    That seems to work for me! Thanks much!

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