Skip to main content

Search

Search

Attempting To Add Values Together.

Comments

1 comment

  • Avatar
    Legacy Poster

    Hello,

     

    I don't know if you solved your issue yet, but I made a little script that loops through the eight fields and checks if it is empty. If the value is not empty it attempts to add the value of that field to the target field.
     

    Dim Field
    Value = 0
    For count = 1 to 8
      Field = "Field_2_" + Cstr(count)
      If Not Trim(Format.NamedSubStrings(Field)) = "" Then
        Value = Value + Cint(Format.NamedSubStrings(Field).Value)
      End If
    Next
    
    

    Replace your code with this one under No. of Cartons:

    0

Please sign in to leave a comment.