Create a CSV file from two tables

SOLVED

Does anyone have any suggestions on how to create one .csv file from two tables? I need to access fields from both the SO_SalesOrder_Header and the SO_SalesOrder_Detail tables. I tried VI but it only accesses one table. Is there a way to access more than one table? We are trying to automatically create a .csv file using Sales Order fields that we then upload to ProntoForms. thanks!

  • 0

    My preferred method and one I suggest to everyone is to use MS Access. Setup some SQL Specific Pass Through Queries and using code you can create and export the file to wherever you want. You can use Windows Scheduler to run the process.

    Another options is to us Knowledge Sync

  • 0 in reply to BigLouie
    verified answer

    Hey MK Thrasher,

    VI actually uses both tables if you begin the export with the Details table (opposite of how you would do an import).  The Header tables are available if you create a VI job starting with the Details table.

    You could use Big Louie's method, which is using a form of MS Query, or you could use Excel to create a file which you should then be able to save as a CSV.  You would have to construct a query, preferably using the Detail table as primary, link in the Header table and voila!

    Hope this helps,

    rclowe

  • 0 in reply to rclowe

    Hey, RC Lowe

    that did the trick. Thanks so much!!