I have a table that stores imported data. Upon each import I need to check if an imported item already exists. I use a unique ID for this and it works fine. BUT the reason for the match could be that the same record is being imported (there are no controls on date ranges for the creation of import data), or the data may actually have been amended.
So my issue is that to see which type it is I was planning to run a calc on the 11 currency fields that this record has. I can't just add them up since the amendment of one field (say an increase of 10, would reduce another by 10). I thought of Field1 x1 + Field2 x2 etc. which should remove the dependency.
This isn't really a vba issue but more of a data uniqueness issue I think.
Of course I could compare 11 values but that is messy in VBA! Any ideas welcome. Many thanks.
Data example Record in current database: Receipt Payment DealValue Tax Duties etc 3,500 0 3,600 100 0 //3,600 - 100 = 3,500 net receipt
Importing record Receipt Payment DealValue Tax Duties etc 3,500 0 3,650 150 0 //3,650 - 150 = 3,500 net receipt
I'm don't wish to create an ID, just a calc that can be compared to see if there is a change.