greekpatriott
Technical User
Is there a way to make this work????? It works if I make an append to and delete query and run them sequentially through a macro. Is it possible to make this sql work using an update query???
Otherwise is it possible to use a module to update a table?? Cheers
UPDATE [Control Plan] RIGHT JOIN [Control plan Q final] ON ([Control Plan].[Control Month] = [Control plan Q final].Date) AND ([Control Plan].[Control Mhrs] = [Control plan Q final].[Control Mhrs]) AND ([Control Plan].[Work Item ID] = [Control plan Q final].[Work Item ID]) AND ([Control Plan].[Package ID] = [Control plan Q final].[Package ID]) AND ([Control Plan].[Hierarchy Position] = [Control plan Q final].[Hierarchy Position]) SET [Control Plan].[Hierarchy Position] = [control plan Q final].[hierarchy Position], [Control Plan].[Package ID] = [control plan Q final].[package id], [Control Plan].[Work Item ID] = [control plan Q final].[work item id], [Control Plan].[Control Month] = [control plan Q final].[date], [Control Plan].[Control Mhrs] = [control plan Q final].[control Mhrs];
Cheers
Otherwise is it possible to use a module to update a table?? Cheers
UPDATE [Control Plan] RIGHT JOIN [Control plan Q final] ON ([Control Plan].[Control Month] = [Control plan Q final].Date) AND ([Control Plan].[Control Mhrs] = [Control plan Q final].[Control Mhrs]) AND ([Control Plan].[Work Item ID] = [Control plan Q final].[Work Item ID]) AND ([Control Plan].[Package ID] = [Control plan Q final].[Package ID]) AND ([Control Plan].[Hierarchy Position] = [Control plan Q final].[Hierarchy Position]) SET [Control Plan].[Hierarchy Position] = [control plan Q final].[hierarchy Position], [Control Plan].[Package ID] = [control plan Q final].[package id], [Control Plan].[Work Item ID] = [control plan Q final].[work item id], [Control Plan].[Control Month] = [control plan Q final].[date], [Control Plan].[Control Mhrs] = [control plan Q final].[control Mhrs];
Cheers