CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Installing SQL Server 2008
  • Writing UDFs for Firebird Embedded SQL Server
  • [Updated] Shutdown Manager
  • Building Windows Azure Cloud Service Applications with Azure Storage and the Azure SDK

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Visual Basic Programming > Crystal Reports
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old March 25th, 2005, 11:06 AM
    RycherX RycherX is offline
    Junior Member
     
    Join Date: Mar 2005
    Posts: 1
    RycherX is an unknown quantity at this point (<10)
    Smile Running Totals

    I have an Oracle View I have brought into Crystal.
    Sample Data is this. There are more CostCenters with consisting of various types:

    View:
    CostCenter Type Hrs
    323 M 10
    323 V 20
    323 L 30
    323 Q 39

    I do a running totals for Hrs in my reports. I have 6 running totals variables. M, V, L, Q, R, X That I display on my report grouped by CostCenter. However, if a CostCenter is missing any of the 6 types, nothing is shown in my report under that type column. How can I default it to 0?

    I want Crystal to be able to handle this issue. My report can't have blanks scattered throughout my report if a Type doesn't exist for that CostCenter.

    Last edited by RycherX; March 25th, 2005 at 11:14 AM.
    Reply With Quote
      #2    
    Old March 26th, 2005, 12:14 AM
    Madhi Madhi is offline
    Senior Member
     
    Join Date: Jul 2004
    Location: Chennai, India
    Posts: 1,064
    Madhi will become famous soon enough (50+)
    Re: Running Totals

    Create a formula having the code

    If Isnull(field)=True then
    '0'
    else
    Field
    __________________
    Madhivanan

    Failing to plan is Planning to fail
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Visual Basic Programming > Crystal Reports


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 05:31 PM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
    Copyright WebMediaBrands Inc. 2002-2009