How to display multiple records in a single template Follow


BarTender Content Team


How can I display multiple records in a single template?

Applicable to

BarTender 2019 and above

Answer / Solution

The Records Per Item feature was introduced in BarTender 2019. This allows you to print multiple database records on a single printed label template.

You will see the following options in the database connection setup→ Records Per Item section.

  • Maximum number of records per printed item - Specifies the maximum number of records that are returned per item. The maximum value for this option is 99. 
  • Break when field changes  - Specifies one or more database fields as break points, so that when the value changes for the field, that record and subsequent records continue to be printed on the next printed item.
  • Combine multiple records into a single field - Specifies database fields that can display the values of multiple records in a single object on the template.
  • Separator - Specifies the type of separator that you want to use for the data that is being combined.
    • Line Break - Specifies that the returned values are separated by a line break.
    • Tab - Specifies that the returned values are separated by a tab.
    • Custom - Specifies that the returned records are separated by a custom separator.


This example illustrates how you can populate multiple records of a single database field on a printed item.

  1. Create a new BarTender document and setup a new database connection.
  2. Go into the Database Connection Setup→Records Per Item section.1.png
  3. Set the maximum number of records you want per printed item. For this example, it is set to 3.2.png
  4. Enable the checkbox option combine multiple records into a single field.
    Select the field drop down->enable the checkbox to (Select All)→click OK. Set the separator to Line Break.
  5. Click OK to the database connection setup.
  6. Now on the template design, create a normal wrapped text object and place it on the template→go into the text properties.
  7. Select the default data source→change the type to a database field using the data source wizard. When prompted for the field to use, noticed the available fields names in the drop down list. Some database field names have a + symbol or number value next to them. The + symbol indicates that it will display all the records for that particular database field. The number value indicates it will display a particular number record.
  8. For this example choose CompanyName + for the database field to use. Click Finish to the data source wizard→close the text properties window.
  9. You can see it displays the 3 records for the CompanyName database field for a single printed item.6.png

Do you have feedback or questions on this article? We encourage you to post them on our Community Forums