Zum Hauptinhalt gehen

Suche

Suche

Urgent!! Vba And Queryprompt!!! Problem

Kommentare

4 Kommentare

  • Avatar
    Domingo Rodriguez
    Moderator

    Have you tried using the name of the query prompt you've created at BT document design time instead?

     

    btQueryPrompt =btFormat1.Databases.QueryPrompts.GetQueryPrompt("Name")

     

    Also, why are you setting the user prompt for the query prompt and the default reply for the query prompt if you're printing via Automation. If BarTender is not going to be visible, all what needs to be done is to set the value for the query prompt at print time:

     

    btQueryPrompt.Value = "Jane Doe"

    0
  • Avatar
    Legacy Poster

    Thanks Domingo for the fast response.

     

    Since I posted this I have tried calling the Query by name but it came back with a response of couldn't find the query name or something similar?

     

    And I agree with your second point as I also found the .Value and have set that up now but still can't connect to the Query?


    Regards

    Martin

    0
  • Avatar
    Domingo Rodriguez
    Moderator

    How did you create the query prompt? Did you do it as explained in the below training video?

    http://www.bartenderbarcodesoftware.com/label-software/training-video-(selecting-records-from-a-database-at-print-time).aspx

    0
  • Avatar
    Legacy Poster

    Thanks for the help but I have solved this problem no by using the following code...

     

    btApp1.ActiveFormat.Databases.QueryPrompts.GetQueryPrompt(1).Value = 
    stocknocheck
     

    Thanks

    Martin

    0

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