Forum Discussion
Creating a table that checks matches two values to another table to replace the values
- 3 years ago
Hi Jsaidtecnimont ,
I think the simplest way to go about this would be to just Left Outer merge your New Query (NQ) onto your First Query (FQ) on FQ[Project] and FQ[Object Code] = NQ[Project] and NQ[Old Object Code].
You can do a two-field merge by using Ctrl+click on the fields in the merge dialog. Make sure to Ctrl+click the fields in the same order on each table:
Pete
- 3 years ago
Hi,
if i understood you want to get in the first table the new object code
you need to merge the first query this way
then expand this way
and you get this
If this post is useful to help you to solve your issue consider giving the post a thumbs up
and accepting it as a solution !
That's great! Thank you for the quick response, but I realized I forgot to mention, not all new object codes should be changed that's why I'm not merging. I have another column for example that states object type, and only a specific type of object needs new object codes, does that make sense?
I will edit the original question, sorry for the missing information.
I think it is not a problem. Once you have merged you create a conditional column that gets the new or the old object code based on your type of object