I want to find any project not in one table and add it to a third table. Then allow the user to check a box next to the ones to import. The following SQL gives an error "Duplicate output Destination Project Number”. If I remove Project Number from the left of the QBE grid then it does not insert the Project Number but leaves it blank. No good. I need the have the project number later.
DougP
Code:
INSERT INTO ChooseTheseToImport ( [Project Number], Service, [Number], [Building Name], [Date], [Project Number] )
SELECT [ChainOfCustody Old].[Project Number], [ChainOfCustody Old].Service, [ChainOfCustody Old].Number, [ChainOfCustody Old].[Building Name], [ChainOfCustody Old].Date, ChainOfCustody.[Project Number]
FROM [ChainOfCustody Old] LEFT JOIN ChainOfCustody ON [ChainOfCustody Old].[Project Number] = ChainOfCustody.[Project Number]
WHERE (((ChainOfCustody.[Project Number]) Is Null));
DougP