Zum Hauptinhalt gehen

Suche

Suche

Print Lot Or Serial Using The Same Field

Kommentare

1 Kommentar

  • Avatar
    Legacy Poster

    When you say that you want to print the lot or serial label, I assume you are referring to a label next to the data the tells the user what type of data is being displayed. If so, create a text object and make it a named data source. I used "DataTitle."

     

    Link the Bartender document to your delimited text file. My code below uses column names of LotNumber and SerialNumber for the data so change it to whatever you call your data.

     

    Then create another text object that will display the data. Give it a data source type of multi-line script and try this:

     

    If Field("LotNumber") <> "" Then
       DataTitle.Value = "Lot #"
       Value = Field("LotNumber")
    Else

       If Field("SerialNumber") <> "" Then
          DataTitle.Value = "Serial #"
          Value = Field("SerialNumber")
       Else
          DataTitle.Value = "Lot #"
          Value = "N/A"
       End If
      
    End If

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.