TylerParker
7 years agoQrew Assistant Captain
Lookup and fill field values based on the content of another table
I have two tables:
Table A holds records for daily delivery routes, two of its fields are the [Driver Name] and [Van ID].
Table B holds records of every stop completed on all daily routes, it also has the fields [Driver Name] and [Van ID].
The stop records in Table B are imported via an API call to a platform which records GPS tracking data for each van. The [Van ID] is obtained with the call, but the [Driver Name] cannot be.
What I want to do is for every record in Table B, where the [Van ID] = "123", for example, I want to lookup in Table A which delivery route had [Van ID] = "123" and find the associated driver name, and show it in the Table B record(s).
Has anyone had any experience with a problem like this? Thanks
Table A holds records for daily delivery routes, two of its fields are the [Driver Name] and [Van ID].
Table B holds records of every stop completed on all daily routes, it also has the fields [Driver Name] and [Van ID].
The stop records in Table B are imported via an API call to a platform which records GPS tracking data for each van. The [Van ID] is obtained with the call, but the [Driver Name] cannot be.
What I want to do is for every record in Table B, where the [Van ID] = "123", for example, I want to lookup in Table A which delivery route had [Van ID] = "123" and find the associated driver name, and show it in the Table B record(s).
Has anyone had any experience with a problem like this? Thanks