Hi All
Please see attached the workbook. There are two tabs named Table1 and Table2. In actual there are two tables in Access database named Table1 and Table2. So just to give u an idea how the data is stored in ACcess tables, I have made two tabs in excel workbook.
Now I want Access VBA code that will check if data in Reference field of Table1 matches with any of the data in Reference field of Table2. If it matches then change the status of the corresponding record of Table2 with either "Withdrawn","Obsolete" or "Updated". SO it depends upon which field out of "WIthdrawn","Obsolete" and "Updated" in Table1 stores "Y". At a time only one of them will have "Y" and rest of two fields will have "N" as shown in the sheets.
As in the example, now Reference "R566" of Table1 matches with Table2 Reference so the status field in Table2 for that record will be "WithDrawn".
ANy help would be much appreciated.
Thanks
Please see attached the workbook. There are two tabs named Table1 and Table2. In actual there are two tables in Access database named Table1 and Table2. So just to give u an idea how the data is stored in ACcess tables, I have made two tabs in excel workbook.
Now I want Access VBA code that will check if data in Reference field of Table1 matches with any of the data in Reference field of Table2. If it matches then change the status of the corresponding record of Table2 with either "Withdrawn","Obsolete" or "Updated". SO it depends upon which field out of "WIthdrawn","Obsolete" and "Updated" in Table1 stores "Y". At a time only one of them will have "Y" and rest of two fields will have "N" as shown in the sheets.
As in the example, now Reference "R566" of Table1 matches with Table2 Reference so the status field in Table2 for that record will be "WithDrawn".
ANy help would be much appreciated.
Thanks