Skip to main content

Search

Search

VBScript to cancel print if data contains a specific letter

Comments

2 comments

  • 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

Please sign in to leave a comment.