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!