Add a function

  • Where can I add this function in report builder? unable to figure out.

    Function GetColor(ByVal CategoryGroupMember As String) As String

    Dim ColorCode As String

    Select Case CategoryGroupMember

    Case "Australia"

    ColorCode = "#AC9494"

    Case "Canada"

    ColorCode = "#37392C"

    Case "France"

    ColorCode = "#939C41"

    Case "Germany"

    ColorCode = "#6B8272"

    Case "United Kingdom"

    ColorCode = "#D29B48"

    Case "United States"

    ColorCode = "#3C4848"

    End Select

    Return ColorCode

    End Function

    Thanks.

  • Figured out...

    In Design view, right-click the design surface outside the border of the report and click Report Properties.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply