Skip to main content

Search

Search

Help With If Then Else

Comments

3 comments

  • Avatar
    Legacy Poster

    When you are assigning the value of the Data Source in question, you need to put "Value = ".

     

    So inside your If statement should be:

     

    Value = Format.NamedSubStrings("QtyInLastBox").Value

    or

    Value = Format.NamedSubStrings("QtyInBox").Value

    0
  • Avatar
    Legacy Poster

    Thanks Guru

     

    Changed my statement as suggested 

     

    If Format.NamedSubStrings("RecordNo").Value >= Format.NamedSubStrings("TotalNoOfLabels").Value  Then
        Value = Format.NamedSubStrings("QtyInLastBox").Value
    Else
        Value = Format.NamedSubStrings("QtyInBox").Value
    End If 
     
    But still get the same 6900 error
    0
  • Avatar
    Legacy Poster

    Is there any more information on the error screen than that? I do not have an issue with that code - can you attach the .btw file to a post?

    0

Please sign in to leave a comment.