Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Printing quantity based on variable

Featured Replies

  • Newbies

Is it possible to print a label X amount of times base on a variable in the database? The variable is not inputted by the user, but rather, is retrieved from a different database via odbc.

FileMaker Version: 6

Platform: Windows 2000

Search through the Forums, there have been a couple of solutions posted in the past.

Most involve either multiple layouts, or creating multiple records for each label.

  • Author
  • Newbies

I found two ways in the forum to get this done, however, both methods are not practical for what I need. The first method is to duplicate the record until you get the number of labels needed and the second is to write a loop that will send a print job of one label and loop it until you get the correct amount of labels. For small qty of labels, it is perfect. The average number of labels that are generally printed is around 1000. I have to believe there is an alternative method that creating 1000 identical records for every lot number or sending 1000 print jobs to the printer. Is there a way we can pass a variable to the print copies field when printing?

Maybe it can be done with a plug-in or a third-party scripting language like WinBatch.

Most people try to create solutions that avoid plug-ins or OS scripts because they add cost and complexity and make the solution less portable.

How about a script that loops through, filling 14 (Avery 5162) global text fields with the approriate label text. As it sets each field, it updates a counter, when the counter hits the number desired, it moves on to the next record. When all 14 fields are filled, it prints it, and starts again from the top.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.