Skip to main content

Search

Search

Set Named Data Source (Global Data Field) Value from VBScript

Comments

2 comments

  • Avatar
    Peter Thane

    Hi John,

    Maybe I am not understanding what you are actually trying to do, but do you need the VB at all?

    If I add a Global Data Field on to both Labels A and B and make the field on A a prompted field (on the Data Entry Form)  and then add these 2 formats into a new batch file, when I run the batch I am asked to enter the value for the prompted (Global) field and this appears on both printed labels automatically.

    Pete

    0
  • Avatar
    John Cummens

    Hi Pete;

    Thanks for the reply.  What you propose would work (and does work), however I may have forgotten a bit of pertinent information in my original post.

    Label A uses a query prompt to determine the record to print.  It is this value returned from the query prompt that I want to push into the global data field, as that same value is needed in Label B.  Hence the desire to use VB to update the global field with the value entered into the query prompt (as I'm unable to find any other method to link a query prompt to a global field).

    Thanks;

    0

Please sign in to leave a comment.