-----Original Message-----
Ken said:
MYOB accounting system requires items in same Invoices
with no line spacing, new invoices with one line spacing.
Is there a way to add in IF statement so that it will put
in "Carriage Return" for next new invoices no??
My statements,
SELECT INVOICE.CUSTOMER_ID, INVOICE.INVOICE_NO, Chr(13) &
Chr(10) AS NL
FROM INVOICE INNER JOIN [INVOICE-DETAIL] ON
INVOICE.INVOICE_NO = [INVOICE-DETAIL].INVOICE_NO;
Or I have to use VB+ADO to compile all data in Word doc
and export as txt?? Any sample script?
A query doesn't keep track of when a value changes, so No,
you can't use an IIf in the above to do what you want.
I suppose you can resort to using Word if that's what you
feel comfortable with, but I would use VBA code (behind a
form button) to open a recordset on your original query,
loop through the selected records and then use the File I/O
statements to write the data directly to the text file.
Check out these areas in Help to see if you can work out the
basics of what you need and come on back with more specific
questions if you need additional assistance.