hi, i'm using a sql procedure which i'd like to implement the equivalent in ms access. i'm not very good at access but i want to know if they can be any possibilities. this is my procedure
Code:
CREATE PROCEDURE CreateOrders
(@cartId char(36))
As
DECLARE @CmdID int
INSERT INTO Commande DEFAULT VALUES
SET @CmdID = @@IDENTITY
INSERT INTO DetailsCommande ( CmdID, ProduitID, ProduitTitre, Quantite, CoutUnitaire )
SELECT [@CmdID], livres.NumLivre, livres.titre, ShoppingCart.Quantite, livres.prix
FROM livres INNER JOIN ShoppingCart ON livres.NumLivre = ShoppingCart.ProduitID
WHERE ShoppingCart.CartID=[@CartID];
DELETE FROM ShoppingCart
WHERE CartID = @CartID
SELECT @CmdID;