跳至主內容

搜尋

搜尋

Serializing When Db Field Changes

評論

1 條評論

  • 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

登入寫評論。