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 Rating: Thread Rating: 1 votes, 5.00 average. Display Modes
      #1    
    Old March 26th, 2004, 03:45 AM
    Octavo Octavo is offline
    Member
     
    Join Date: Mar 2004
    Location: South Africa
    Posts: 48
    Octavo is an unknown quantity at this point (<10)
    Unhappy Crosstab woes

    Good day all.

    I'm using crystal reports 9.

    I have a list of names down the left (sDriverName) and the months across the top (liMonth). The summarised field is the Driver score (liScore). There is another database field called liBandColour which indicates what colour band the driver's score is for that month (red, amber, green).

    I have a formula on the Background colour of the liScore field (Basic syntax):
    if {Rag.liBandColour} =255 then
    formula = crRed 'Red
    elseif {Rag.liBandColour} =65535 then
    formula = rgb(255,255,0) 'Amber
    elseif {Rag.liBandColour} =13434828 then
    formula = crGreen 'Green
    else
    formula = crWhite 'White
    end if

    However this seems to make ALL the scores appear amber and doesn't seem to work on a per record basis.

    On to question 2:
    The user has now requested to add another column on the right with the YTD kms travelled. Now it's a simple thing to add another summarised field and suppress it (the DB also contains the kms travelled each month so this is easy), but then it appears underneath the averaged driver score total and not next to it in it's own column.... Is there anyway around this?
    Can I perhaps duplicate the look of my report without using a crosstab
    Reply With Quote
      #2    
    Old March 26th, 2004, 12:57 PM
    harmonycitra harmonycitra is offline
    Member
     
    Join Date: May 2003
    Posts: 163
    harmonycitra is on a distinguished road (20+)
    For your first problem, I came thru something like that in CrystalDecisions.com

    visit this url

    For your second problem, it may not. any way

    have a look at here

    Last edited by harmonycitra; March 26th, 2004 at 01:04 PM.
    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 12:04 AM.



    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