L
lindasarus
I have created a temp table that store ms project plans in an excel format.
Each week, I import the updated plans into the temp table and then I then
run an update query that updates my master table with the lastest information
in the temp table - the join query The problem is that not all the updates
are being included in the master. What options do I have? I would like to
update the master with the lastest imported records but it doesnt always
happen.
Here's the query
UPDATE [Temp Table] LEFT JOIN [Master Transfer Table] ON ([Temp Table].ID=
[Master Transfer Table].ID) AND ([Temp Table].Job_ID=[Master Transfer Table].
Job_ID) SET [Master Transfer Table].ID = [Temp Table].[ID], [Master Transfer
Table].Job_ID = [Temp Table].[Job_ID], [Master Transfer Table].Client_ID =
[Temp Table].[Client_ID], [Master Transfer Table].Protocol = [Temp Table].
[Protocol], [Master Transfer Table].Notes = [Temp Table].[Notes], [Master
Transfer Table].Date_Complete = [Temp Table].[Date_Complete], [Master
Transfer Table].Task_Name = [Temp Table].[Task_Name], [Master Transfer Table].
KD = [Temp Table].[KD], [Master Transfer Table].Duration = [Temp Table].
[Duration], [Master Transfer Table].Start_Date = [Temp Table].[Start_Date],
[Master Transfer Table].Finish_Date = [Temp Table].[Finish_Date], [Master
Transfer Table].Predecessors = [Temp Table].[Predecessors], [Master Transfer
Table].Resource_Names = [Temp Table].[Resource_Names], [Master Transfer Table]
.Baseline_Start = [Temp Table].[Baseline_Start], [Master Transfer Table].
Baseline_Finish = [Temp Table].[Baseline_Finish], [Master Transfer Table].
Delay_Reasons = [Temp Table].[Delay_Reasons], [Master Transfer Table].
Customer_Code = [Temp Table].[Customer_Code];
Each week, I import the updated plans into the temp table and then I then
run an update query that updates my master table with the lastest information
in the temp table - the join query The problem is that not all the updates
are being included in the master. What options do I have? I would like to
update the master with the lastest imported records but it doesnt always
happen.
Here's the query
UPDATE [Temp Table] LEFT JOIN [Master Transfer Table] ON ([Temp Table].ID=
[Master Transfer Table].ID) AND ([Temp Table].Job_ID=[Master Transfer Table].
Job_ID) SET [Master Transfer Table].ID = [Temp Table].[ID], [Master Transfer
Table].Job_ID = [Temp Table].[Job_ID], [Master Transfer Table].Client_ID =
[Temp Table].[Client_ID], [Master Transfer Table].Protocol = [Temp Table].
[Protocol], [Master Transfer Table].Notes = [Temp Table].[Notes], [Master
Transfer Table].Date_Complete = [Temp Table].[Date_Complete], [Master
Transfer Table].Task_Name = [Temp Table].[Task_Name], [Master Transfer Table].
KD = [Temp Table].[KD], [Master Transfer Table].Duration = [Temp Table].
[Duration], [Master Transfer Table].Start_Date = [Temp Table].[Start_Date],
[Master Transfer Table].Finish_Date = [Temp Table].[Finish_Date], [Master
Transfer Table].Predecessors = [Temp Table].[Predecessors], [Master Transfer
Table].Resource_Names = [Temp Table].[Resource_Names], [Master Transfer Table]
.Baseline_Start = [Temp Table].[Baseline_Start], [Master Transfer Table].
Baseline_Finish = [Temp Table].[Baseline_Finish], [Master Transfer Table].
Delay_Reasons = [Temp Table].[Delay_Reasons], [Master Transfer Table].
Customer_Code = [Temp Table].[Customer_Code];