Hello,
I am trying to use a loop to output a recordset to a text file, the data output is processed as it is output and formatted correctly. The output seems to include 8 lines of output for each record, though all I want is a single line for each of these records.
Can anyone shed any light on why I get the repeated records? The sql string used to generate the recordset is shown below.
"SELECT Cheque.Cheque_No, Cheque.ProducedDate, Cheque.Amount, Cheque.CreditAccount, Debits.DebitAccount, Debits.Amount, Attributes.Analysis_Code, Attributes.Analysis_Attribute FROM (Cheque LEFT JOIN Debits ON Cheque.Cheque_No=Debits.Cheque_No) LEFT JOIN Attributes ON (Debits.Debit_ID=Attributes.Debit_ID) WHERE (((((Cheque.Cheque_No)>=" & fromChequenum & " And (Cheque.Cheque_No)<=" & toChequenum & ") And (Cheque.Cancelled)= False) And (Cheque.Transferred)= False)) ORDER BY Cheque.Cheque_No, Debits.Debit_ID;"
cheers any help
I am trying to use a loop to output a recordset to a text file, the data output is processed as it is output and formatted correctly. The output seems to include 8 lines of output for each record, though all I want is a single line for each of these records.
Can anyone shed any light on why I get the repeated records? The sql string used to generate the recordset is shown below.
"SELECT Cheque.Cheque_No, Cheque.ProducedDate, Cheque.Amount, Cheque.CreditAccount, Debits.DebitAccount, Debits.Amount, Attributes.Analysis_Code, Attributes.Analysis_Attribute FROM (Cheque LEFT JOIN Debits ON Cheque.Cheque_No=Debits.Cheque_No) LEFT JOIN Attributes ON (Debits.Debit_ID=Attributes.Debit_ID) WHERE (((((Cheque.Cheque_No)>=" & fromChequenum & " And (Cheque.Cheque_No)<=" & toChequenum & ") And (Cheque.Cancelled)= False) And (Cheque.Transferred)= False)) ORDER BY Cheque.Cheque_No, Debits.Debit_ID;"
cheers any help