Quote:
Originally Posted by Daine
I would appreciate some help in a problem I've been having.
We use two packages one for accounting and one to keep track of sales made.
I have two tables imported into access from each of the programs
I need to do match two separate things:
The sales system creates dockets for each sale, each week a report is run that creates invoices, so each invoice may have several dockets.
The accounting program only has the invoice information.
For audit reasons I need to match this data up to check they match.
I want to compare the invoice number from each query (or table whichever is easier) match and identify if any don't match so I can track down why they are not in.
Second:
I can run a query to sort to data from the sales program- I need a column that adds were the invoice numbers match so I can compare to the invoice in the accounting program (dockets can be altered later, so someone could undercharge a docket, wait for the export and change it later so if it is checked it seems right). Basically checking all the docket prices that form one invoice from the sales system = the invoice from the accounting software.
So I'm checking two things- one if something is not in one table and not the other (so I can find out why), and secondly where invoices do match I want to find out if they are equal (and as one table has the invoice made up of multiple values I have problems).
Thanks for any help, it is appreciated.
I would create a query on the sales dockets, grouping them together, so that you have 1 record on sales per invoice. (If there is no logical way of grouping the dockets together, I don't see how you can match them to the invoices anyway)
You now have two recordsets, one for invoices, one for sales, with a 1-1 match and the sales total should equal the invoice value.
You can then read through both recordsets looking for matches. [/code]