INSERT INTO [Ontvangst Bestelling] ( KlantID, [product 1], [aantal product 1], [product 2], [aantal product 2], [product 3], [aantal product 3], OfferteID )
SELECT Offerte.KlantID, Offerte.[product 1], Offerte.[aantal product 1], Offerte.[product 2], Offerte.[aantal product 2], Offerte.[product 3], Offerte.[aantal product 3], Offerte.OfferteID
FROM Offerte
WHERE [OfferteID] NOT IN (SELECT Offerte.OfferteID FROM [Ontvangst Bestelling]);
Ik zou graag hebben dat als je record opslaat in offerte, dit automatisch doorzend naar ontvangst bestelling. Maar niet allemaal.
Ik heb deze SQL-code.
Wat is er fout aan?
SELECT Offerte.KlantID, Offerte.[product 1], Offerte.[aantal product 1], Offerte.[product 2], Offerte.[aantal product 2], Offerte.[product 3], Offerte.[aantal product 3], Offerte.OfferteID
FROM Offerte
WHERE [OfferteID] NOT IN (SELECT Offerte.OfferteID FROM [Ontvangst Bestelling]);
Ik zou graag hebben dat als je record opslaat in offerte, dit automatisch doorzend naar ontvangst bestelling. Maar niet allemaal.
Ik heb deze SQL-code.
Wat is er fout aan?