Zum Hauptinhalt gehen

Suche

Suche

Need to enter random serial numbers on a data entry form

Kommentare

2 Kommentare

  • Avatar
    Kendra Newman

    I realize this post is a few years old, but I am trying to do the exact same thing and wondered if anyone had a suggestion.

    We're using BT2022

    Thanks,

    Kendra

    0
  • Avatar
    Peter Thane

    There is a random function in VB however that would only randomise the number for that print run and would not check with that number has already been used and so if you need that then you would need to generate the number outside of BarTender and pass the number to use to use it.

    If you include a serialised field to your label (or off the side so it does not print) and link this to the number of labels you want to print then including an OnSerialise Event Contrlled VB Script field with the RND command will give you random number each time the serial number/count increases. For example this will print a number between 1 and 1000

    Value = Int((1000 - 1 + 1) * Rnd + 1)

    0

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