Skip to main content

Search

Search

VB Scipt Error

Comments

3 comments

  • Avatar
    Peter Thane

    I would suggest you make Text Field 18 a VB>Event Controlled>OnPostPrompt script object and add the VB to there. You would need to edit the second line of each pair from Format.Objects("Text 18").Value = ...." to Value = .... 

    0
  • Avatar
    Devandri Suherman

    Thank you for the answer. It works to my coding.

    0
  • Avatar
    Peter Thane

    You cant link the VB to an input from a Data Entry box. You need to use the data in the field that the entry box is connected to.

    In the image below field 1234 is link to the Number Input Box on the Data Entry Form and for ease of connection I have also Named this field TheInput.

     

    The Empty field is the field that contains the VB script and is set as an Event Controlled Script > OnPostPrompt so that is will run after the data has been entered at print time on the form.

    I just modified your code to link to TheInput rather than then Number Input Box

     

     

     

    0

Please sign in to leave a comment.