snowmantle
Programmer
Hi,
I am trying to find examples of how to compare the two below tables using ADO preferably.
The comparison would be:
Look at the product code in the Excel table
check to see if it exists in the Access table
If it does then check if the product description for that same record also matches the one in the Excel table (ignoring case and trimming spaces but not punctuation)
delete the row from the Excel table if both match
If it doesn't match then leave the row in the Excel table and go on to the next one.
If there is no good option my fall back is to create even more querytables in the Excel file and compare that but its getting a bit silly there must be a better way of doing my comparisons in VBA alone.
Anyone got any examples?
Excel Table
Access table
I am trying to find examples of how to compare the two below tables using ADO preferably.
The comparison would be:
Look at the product code in the Excel table
check to see if it exists in the Access table
If it does then check if the product description for that same record also matches the one in the Excel table (ignoring case and trimming spaces but not punctuation)
delete the row from the Excel table if both match
If it doesn't match then leave the row in the Excel table and go on to the next one.
If there is no good option my fall back is to create even more querytables in the Excel file and compare that but its getting a bit silly there must be a better way of doing my comparisons in VBA alone.
Anyone got any examples?
Excel Table
Code:
product code product description
18800003 Product One
18801103 Product Two
18801903 Product Three
Access table
Code:
product_key product_code product_description
1 18800003 Product One
2 18801103 Product Two
3 18801903 Product Three
4 15623423 Product Four