Skip to main content

Search

Search

Serializing When Db Field Changes

Comments

1 comment

  • 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

Please sign in to leave a comment.