A couple more questions.
1. The table of invoices you're checking, is it static? I mean do you get a
new table of data each week, month, whatever, to run your reports against?
Or is this table continually getting new records added to it.
2. Do the records have a unique key field?
3. You say you...