Zum Hauptinhalt gehen

Suche

Suche

VBScript to cancel print if data contains a specific letter

Kommentare

2 Kommentare

  • Avatar
    Shotaro Ito

    Create a text and link to text input box on a form.

    On the text's Data source > Transform, apply VB Script below:

    OnProcessData

    If Mid(Value,22,1)="N" Then call Format.CancelPrinting("Wrong Label Program","")
    0
  • Avatar
    Christine Wattley

    Thank you!  this worked just as expected.

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.