Zum Hauptinhalt gehen

Suche

Suche

Vb Scripting And Sql Data

Kommentare

4 Kommentare

  • Avatar
    Fernando Ramos Miracle

    Hello Slickson,

     

    I'm afraid that I don't fully understand what you require, could you clarify it?

     

    a. What exactly is the "value" your application is converting, that you wish to retrieve? Is it the numeric fragment from the "<<Item Number = XXX">> data contained in the field from your database?

     

    How exactly is this value "constructed"?

     

    b. Do you need to have BarTender do a "second database connection" to a different table to search for a certain value, using the result from a query applied to the initially connected database?

     

    Thanks!

    0
  • Avatar
    Legacy Poster

    The "XXX" is the customer number which would be part of the data needed to do a lookup on the table.

     

    For instance ... the label document currently takes an input of a sales order line.  That sales order line contains a link to both an item number and customer number.  There is a third table that contains the item number the customer uses (in their system).  In order to retrieve the correct value to display on the label I would need to join to the table using the our item number on the sales line and the dynamic value of the customer number.

     

    For b, If I understand your question correctly the answer is no.  The information being retrieved is in the same database, just in a different table that does not have a simple join that can be built using the standard database connection tools.

    0
  • Avatar
    Legacy Poster

    Bump

    0
  • Avatar
    Fernando Ramos Miracle

    Hello Slickson,

     

    I'm afraid that BarTender doesn't make a difference between different databases and different tables, all are different sets of data. Unfortunately if through the supported "Multi-Database Join" feature you cannot get the required result, you'll definitively need to retrieve this information through a VB Script. This could be done from a Data Entry Form maybe using a drop-down list control. There are many examples on how to get this done in the forum, below you'll find one of them:

     

    http://forums.seagullscientific.com/index.php?/topic/1666-drop-down-list-of-addresses/?p=4842

     

    Regards.

    0

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