Results 1 to 2 of 2

Thread: [RESOLVED] Crystal formula help please

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2005
    Posts
    43

    Resolved [RESOLVED] Crystal formula help please

    Thanks to all who helped me in the past

    I use a formula field to print a message only when items are all packed into one carton

    if {Despatch.Type} = "OverPack" then

    if {Despatch.caseno} = "" then
    ""
    else "All packed in carton #" & {Despatch.caseno} & Sum({Despatch.weight}) & " kg"


    Should print the weight for items inside a particular carton after the contents list for each carton only if packed together.


    All Packed in carton #1 7 kg

    All Packed in carton #2 4 kg

    All Packed in carton #3 3 kg

    I have placed the formula in the group Footer (grouped by despatch.caseno)
    but it still prints the total weight of all items against each carton like

    All Packed in carton #1 14 kg

    All Packed in carton #2 14 kg

    All Packed in carton #3 14 kg

    When Items are sent unpacked then the weight gets printed next to the items like
    2 x Monitors 6 kg
    3 xPrintwers 2.5kg
    This works OK

    Alternatively i can use formula field

    if {Despatch.Type} = "OverPack" then

    if {Despatch.caseno} = "" then
    ""
    else "All packed in carton #" & {Despatch.caseno}

    AND insert a summary field in the group footer But need then to suppress the summary field if not packed together

    Either way I need some help please
    PS. How do I flag a message when resolved?

  2. #2
    Frenzied Member bmahler's Avatar
    Join Date
    Oct 2005
    Location
    Somewhere just west of the Atlantic
    Posts
    1,568

    Re: Crystal formula help please

    did you try running a Running Total field on the package weights?
    you can create one and have it sum the weights and reset on group change.

    hopefully this helps.

    p.s. to mark as resolved, click thread tools at the top of your thread and the mark as resolved option should appear in the drop down.
    Boooya
    • Visual Studio 2008 Professional
    • Don't forget to use [CODE]your code here[/CODE] when posting code
    • Don't forget to rate helpful posts!
    • If you're question was answered please mark your thread [Resolved]


    Code Contributions:
    PHP
    PHP Image Gallery v1.0PHP Image Gallery v2.0
    VB 2005
    Find Computers on a networkSimple License EncryptionSQL Server Database Access dllUse Reflection to Return Crystal ReportDocumentSilently Print PDFGeneric Xml Serailizer


    Useful Links: (more to come)
    MSDN (The first and foremost)MSDN Design Guidelines API Reference • Inno Setup CompilerInno Setup PreprocessorISTool - Fairly easy to use GUI for creating inno setup projects • Connection StringsNAnt -Automated BuildsCruise Control .NET - Frontend for automated builds

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