SlowDriver
Technical User
Hi IT experts,
I would like to copy ID from one table to another with relationship in mind. The following 3 tables are involved.
Travel_tbl: contain projectsubID, and ProviderID which I am using to link travel_tbl to projectAct_tbl and Providers_tbl
projectAct_tbl: contain the projectActivityID that I need to append or copy to travel table for records that match the individual
Providers_tbl
the goal
Example, 3 individuals will be in one task. projectsub4555 the projectactivityID for each of the 3 individuals in this task are 456666,822222,226222
currrent issue: the projectsub is OK, the problem is that with the query I wrote, it will append the projectactivityID of the first individual and paste it for all of instead of copying the projectactivityID of the right indiviudal using the JHEDID as identifier.
That is why I linked Travel_tbl to projectAct_tbl using the projectsub to identify the task then I linked the field Udid14 to JHEDID to identify the individuals.
UPDATE (Travel_tbl LEFT JOIN ProjectAct_tbl ON Travel_tbl.[Sort9] = ProjectAct_tbl.ProjectSub) LEFT JOIN Providers_tbl ON Travel_tbl.Udid14 = Providers_tbl.JHEDID SET Travel_tbl.ProjectActivityID = [ProjectAct_tbl].[ProjectActivityID];
Please let me know what I can do to get this resolved.
I would like to copy ID from one table to another with relationship in mind. The following 3 tables are involved.
Travel_tbl: contain projectsubID, and ProviderID which I am using to link travel_tbl to projectAct_tbl and Providers_tbl
projectAct_tbl: contain the projectActivityID that I need to append or copy to travel table for records that match the individual
Providers_tbl
the goal
Example, 3 individuals will be in one task. projectsub4555 the projectactivityID for each of the 3 individuals in this task are 456666,822222,226222
currrent issue: the projectsub is OK, the problem is that with the query I wrote, it will append the projectactivityID of the first individual and paste it for all of instead of copying the projectactivityID of the right indiviudal using the JHEDID as identifier.
That is why I linked Travel_tbl to projectAct_tbl using the projectsub to identify the task then I linked the field Udid14 to JHEDID to identify the individuals.
UPDATE (Travel_tbl LEFT JOIN ProjectAct_tbl ON Travel_tbl.[Sort9] = ProjectAct_tbl.ProjectSub) LEFT JOIN Providers_tbl ON Travel_tbl.Udid14 = Providers_tbl.JHEDID SET Travel_tbl.ProjectActivityID = [ProjectAct_tbl].[ProjectActivityID];
Please let me know what I can do to get this resolved.