I assume your tables are something like
Payments - has fields TransactionNumber, AmountPaid
Receipts - has fields TransactionNumber, ReceiptAmount, Detail, Date
In which case your sql would go something like
Code:
SELECT * FROM Receipts INNER JOIN Payments ON Receipts.TransactionNumber=Payments.TransactionNum ber ORDER BY Receipts.Date DESC
This will give you one table with all of your results, then you just show the values in the applicable columns.
Sorting by date should still work because the text 20030501 is still greater than text 20030401, therefore it will come to the top.
-- This message may have been cut off and the rest will only be shown to members. To become a member, click here --