OK...here is my problem.
I have an excel spreadsheet that contains the data that I want to use to update my current table with. I have created a macro to import the data into a table called temp. This macro works fine and imports the data for me. Now the hard part.
I want to take the temp table and compare it to a table called Unit To Do List. I want the table to compare the name field (each table has a field called Name) and update the unit to do list table according to the following rules:
If a name is in the Unit To Do List and is not in the Temp table, delete the record.
If a name is in the Unit To Do List and it is in the Temp table I want it to compare the values in the following fields and update if needed:
Comapre Unit with Unit
Compare Rank/Rate with Rank/Rate
If a name is not in the Unit to do list, but is in the Temp table I want the record added to the Unit to do list table.
I am sure that this will have to be done in code (at least I think). I have not done any coding, just now getting into that. If someone could help me out I would greatly appreciate it.
Thanks
David
I have an excel spreadsheet that contains the data that I want to use to update my current table with. I have created a macro to import the data into a table called temp. This macro works fine and imports the data for me. Now the hard part.
I want to take the temp table and compare it to a table called Unit To Do List. I want the table to compare the name field (each table has a field called Name) and update the unit to do list table according to the following rules:
If a name is in the Unit To Do List and is not in the Temp table, delete the record.
If a name is in the Unit To Do List and it is in the Temp table I want it to compare the values in the following fields and update if needed:
Comapre Unit with Unit
Compare Rank/Rate with Rank/Rate
If a name is not in the Unit to do list, but is in the Temp table I want the record added to the Unit to do list table.
I am sure that this will have to be done in code (at least I think). I have not done any coding, just now getting into that. If someone could help me out I would greatly appreciate it.
Thanks
David