• REPLACE (A2K)

    Author
    Topic
    #445341

    I have:

    Exp1:REPLACE([tPhysician],",","")

    in a query to REPLACE commas with nothing. However, when I attempt to run the query I get:

    Undefined funtion REPLACE in expression

    What have I done wrong now? Anyone have any idea.

    Viewing 0 reply threads
    Author
    Replies
    • #1079616

      The only thing you’ve done wrong, it not upgrade to O2K3
      I gotten bit by the same thing.

      See link in this post post 646,654

      • #1079619

        Didn’t realize that….your help is much appreciated.

        • #1079648

          You can define a custom function in a standard module:

          Public Function MyReplace(Expr, What As String, Replace As String)
          If IsNull(Expr) Then
          MyReplace = Null
          Else
          MyReplace = Replace(Expr, What, Replace)
          End If
          End Function

          Use like this:

          Exp1: MyReplace([tPhysician],",","")

    Viewing 0 reply threads
    Reply To: REPLACE (A2K)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: