I am importing data from a csv file into Access. Each import represents a set of data about orders. It is actually an 830 for those who know EDI. I am going through the raw data and parsing everything to create a record in Access. I have one record for every different date in the file. For example, I will have a requirement of 240 widgets on 6/1/2011, 250 widgets on 6/8/2011, no widgets on 6/15/2011 etc. The requirements are further broken down into planned and actual quantities. I need to do a comparison of the new data to the latest old data. My thought is this, I can do my import into a temporary table called 830temp. Then do a comparison of this table to my 830 table to determine what if anything has changed. Some of the suppliers send the 830 to me everyday even if no change to the schedule has occurred. I have a field in the 830 called issuedate. This is the date the 830 was issued by the supplier. I also have an order #, part # and PO# to match.
What I don't know how to do is to compare the 830 temp record with the 830 table. I thought I could somehow check the first record for a match and if it did move to the next record. If a match was not found, I would like to indicate what record was affected. I would also have to do this in the reverse. It is possible that as I showed in the example above, the 250 widgets due on 6/8 got moved to 6/15. In this case, I would need to see that in the 830temp table I have a new record on 6/15 and on the 830 table I no longer have a 6/8 record.
I hope that someone can point me in the right direction. I can provide a sample of the data to anyone who needs it.
What I don't know how to do is to compare the 830 temp record with the 830 table. I thought I could somehow check the first record for a match and if it did move to the next record. If a match was not found, I would like to indicate what record was affected. I would also have to do this in the reverse. It is possible that as I showed in the example above, the 250 widgets due on 6/8 got moved to 6/15. In this case, I would need to see that in the 830temp table I have a new record on 6/15 and on the 830 table I no longer have a 6/8 record.
I hope that someone can point me in the right direction. I can provide a sample of the data to anyone who needs it.