jd_boss_hogg
Registered User.
- Local time
- Today, 22:00
- Joined
- Aug 5, 2009
- Messages
- 88
Hi All - I don't even know how to start creating this query - any advice would be much appreciated !
I have a table, which has invoice data, and each record can have upto 9 seperate products/qty/prices on the record (e.g., [product1][qty1][product2][qty2] etc) I need to output this as a CSV file, to import into Sage. I'm running a query, and then in datasheet view, saving this as a delimited text file. All works well.
here is the problem. Sage doesn't allow a line of the CSV to include more than one product/qty/price etc. the way Sage works, is that you must import the record a second time - keep the invoice number the same - but change the product details, and then Sage appends all of the rows that share the same invoice number onto one 'Sage invoice'.
So, how can i run a query that displays a record in datasheet view, then re-displays the same record a line below where the criteria justifies it? Eg, if qty2>0
E.g., in datasheets i want...
ABC Ltd inv12345 10/1/09 Widgets 10.00 1
ABC Ltd inv12345 10/1/09 Donuts 12.00 1
Hoping someone can shed a little light for me !
Thanks!
I have a table, which has invoice data, and each record can have upto 9 seperate products/qty/prices on the record (e.g., [product1][qty1][product2][qty2] etc) I need to output this as a CSV file, to import into Sage. I'm running a query, and then in datasheet view, saving this as a delimited text file. All works well.
here is the problem. Sage doesn't allow a line of the CSV to include more than one product/qty/price etc. the way Sage works, is that you must import the record a second time - keep the invoice number the same - but change the product details, and then Sage appends all of the rows that share the same invoice number onto one 'Sage invoice'.
So, how can i run a query that displays a record in datasheet view, then re-displays the same record a line below where the criteria justifies it? Eg, if qty2>0
E.g., in datasheets i want...
ABC Ltd inv12345 10/1/09 Widgets 10.00 1
ABC Ltd inv12345 10/1/09 Donuts 12.00 1
Hoping someone can shed a little light for me !
Thanks!