Aller au contenu principal

Recherche

Recherche

Serializing When Db Field Changes

Commentaires

1 commentaire

  • Avatar
    Michael Toupin (mtoupin

    This functionality was introduced in BarTender 10.1.  In the 'reset' tab, you'd check the box for 'data changes', then specify the field.

     

    To do it in VB scripting it's a bit more complicated.  What you have to do is to create a variable, then on print start assign the database field to it.  

     

    So OnPrintStart do:

     

    Counter = Field(databasefield)

     

    Then OnNewRecord do:

     

    If Counter <> Field(databasefield) then 

    value  = 1 

    Counter = Field(Databasefield)

    end if

     

     

    so that it only resets if the database info is different than the previous info.

    0

Vous devez vous connecter pour laisser un commentaire.