E
EagleOne
2003/2007
The following table is produced by the query below.
TABLE: TransPerGetAcctTbl
Tran Acct AccountDesc ContraAccDesc
74709 1410 Loan Recv 8500 · Inter Inc
74710 1410 Loan Recv 8500 · Inter Inc
74713 1410 Loan Recv 8500 · Inter Inc
75388 1410 Loan Recv 8500 · Inter Inc
75388 1410 Loan Recv 8500 · Inter Inc -Duplicate-
76937 1410 Loan Recv 8500 · Inter Inc
76938 1410 Loan Recv 8500 · Inter Inc
76939 1410 Loan Recv 8500 · Inter Inc
strSQL = "SELECT DISTINCT TransactionsTbl.Tran, TransactionsTbl.Acct, _
TransactionsTbl.AccountDesc, TransactionsTbl.ContraAccDesc" _
INTO TransPerGetAcctTbl FROM TransactionsTbl
WHERE TransactionsTbl.AccountNumber='1410';"
DoCmd.RunSQL strsql, dbFailOnError
Notice the duplicate "Tran" number 75388.
The TransactionsTbl does have multiple "Rows" of the same transaction number but with (usually)
different dollar amounts therefore, it is not an error.
That said, the query causes duplicate information the TransPerGetAcctTbl.
How can I re-write the query so as to eliminate the duplicate in TransPerGetAcctTbl?
Any thoughts appreciated.
TIA EagleOne
The following table is produced by the query below.
TABLE: TransPerGetAcctTbl
Tran Acct AccountDesc ContraAccDesc
74709 1410 Loan Recv 8500 · Inter Inc
74710 1410 Loan Recv 8500 · Inter Inc
74713 1410 Loan Recv 8500 · Inter Inc
75388 1410 Loan Recv 8500 · Inter Inc
75388 1410 Loan Recv 8500 · Inter Inc -Duplicate-
76937 1410 Loan Recv 8500 · Inter Inc
76938 1410 Loan Recv 8500 · Inter Inc
76939 1410 Loan Recv 8500 · Inter Inc
strSQL = "SELECT DISTINCT TransactionsTbl.Tran, TransactionsTbl.Acct, _
TransactionsTbl.AccountDesc, TransactionsTbl.ContraAccDesc" _
INTO TransPerGetAcctTbl FROM TransactionsTbl
WHERE TransactionsTbl.AccountNumber='1410';"
DoCmd.RunSQL strsql, dbFailOnError
Notice the duplicate "Tran" number 75388.
The TransactionsTbl does have multiple "Rows" of the same transaction number but with (usually)
different dollar amounts therefore, it is not an error.
That said, the query causes duplicate information the TransPerGetAcctTbl.
How can I re-write the query so as to eliminate the duplicate in TransPerGetAcctTbl?
Any thoughts appreciated.
TIA EagleOne