LookUp function weird issue

  • I am experiencing a weird issue with the LookUp function. I have a list grouped by certain field. For example employees grouped by city. For each employee i have a column of the list where i use the LookUp function to retrieve more info from another dataset.

    So far everything works as expected.

    But i need to  format the result of the LookUp.

    And i get #Error when trying to. No matter how simple is the expresión, ir does not work.

    Example of working expression:

    =LookUp(Fields!CurrentPositionID.Value, Fields!PositionID.Value, Fields!PositionName.Value, "PositionsDataSet")

    But if i add this

    ="aaaaa" & CStr(LookUp(Fields!CurrentPositionID.Value, Fields!PositionID.Value, Fields!PositionName.Value, "PositionsDataSet"))

    I get #Error

    If i add

    =Code.Test(LookUp(Fields!CurrentPositionID.Value, Fields!PositionID.Value, Fields!PositionName.Value, "PositionsDataSet"))

    And i add Report Code

    Function Test (ByVal value as Object) As String

    Return "aaaa"

    End Function

    I get #Error too.

    Basically i need to format the LookUp result and no matter what i do, i get #Error

    Is this a bug? Is there any restriction on LookUp i do not know?

    I am using Visual Studio Community 2019 against SQL Server 2012 Express Edition

    Anyone had faced and resolved this?

    Regards.

     

     

    • This topic was modified 3 years, 5 months ago by  FedeCanalla.
  • Thanks for posting your issue and hopefully someone will answer soon.

    This is an automated bump to increase visibility of your question.

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

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