Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Comment puis-je integrer ceci???

1 réponse
Avatar
batieres
Bonjour,

Voila une requete que j'ai faite et qui fonctionne tres bien. Je voudrais la
rajouter a une procedure evenementielle afin que quand je clique sur le
bouton de sorti de mon formulaire ma table se mette à jour.

Question : comment l'integrer dans ma procedure evenementielle??

Merci d'avance

UPDATE Commandes SET Commandes.[TOTAL COMMANDE] =
(Commandes!QUANTITE*Commandes![PRIX
UNITAIRE])+(Commandes!QUANTITE1*Commandes![PRIX UNITAIRE
1])+(Commandes!QUANTITE2*Commandes![PRIX
UNITAIRE2])+(Commandes!QUANTITE3*Commandes![PRIX
UNITAIRE3])+(Commandes!QUANTITE4*Commandes![PRIX
UNITAIRE4])+(Commandes!QUANTITE5*Commandes![PRIX
UNITAIRE5])+(Commandes!QUANTITE6*Commandes![PRIX
UNITAIRE6])+(Commandes!QUANTITE7*Commandes![PRIX
UNITAIRE7])+(Commandes!QUANTITE8*Commandes![PRIX UNITAIRE8]);
--
Avoir raison c''''est avoir le tort des autres

1 réponse

Avatar
Guy du Lac
Salut

Essai cela ! et laisse moi savoir

dim req1, req2, req3, req4, req5, req6, req7, req8, req9, req10, req11

req1 = "UPDATE Commandes SET Commandes.[TOTAL COMMANDE] = "
req2 = "(Commandes!QUANTITE*Commandes![PRIX UNITAIRE])+ "
req3 = "(Commandes!QUANTITE1*Commandes![PRIX UNITAIRE > 1])+ "
req4 = "(Commandes!QUANTITE2*Commandes![PRIX UNITAIRE2])+"
req5 = "(Commandes!QUANTITE3*Commandes![PRIX UNITAIRE3])+"
req6 = "(Commandes!QUANTITE4*Commandes![PRIX UNITAIRE4])+"
req7 = "(Commandes!QUANTITE5*Commandes![PRIX UNITAIRE5])+"
req8 = "(Commandes!QUANTITE6*Commandes![PRIX UNITAIRE6])+"
req9 = "(Commandes!QUANTITE7*Commandes![PRIX UNITAIRE7])+"
req10 = "(Commandes!QUANTITE8*Commandes![PRIX UNITAIRE8]);"

req11 = req1 + req2 + req3 +req4 + req5 + req6 + req7 + req8 + req9 + req10

me.recordsource = req11


--
Merci,
Guy du Lac



Bonjour,

Voila une requete que j'ai faite et qui fonctionne tres bien. Je voudrais la
rajouter a une procedure evenementielle afin que quand je clique sur le
bouton de sorti de mon formulaire ma table se mette à jour.

Question : comment l'integrer dans ma procedure evenementielle??

Merci d'avance

UPDATE Commandes SET Commandes.[TOTAL COMMANDE] =
(Commandes!QUANTITE*Commandes![PRIX
UNITAIRE])+(Commandes!QUANTITE1*Commandes![PRIX UNITAIRE
1])+(Commandes!QUANTITE2*Commandes![PRIX
UNITAIRE2])+(Commandes!QUANTITE3*Commandes![PRIX
UNITAIRE3])+(Commandes!QUANTITE4*Commandes![PRIX
UNITAIRE4])+(Commandes!QUANTITE5*Commandes![PRIX
UNITAIRE5])+(Commandes!QUANTITE6*Commandes![PRIX
UNITAIRE6])+(Commandes!QUANTITE7*Commandes![PRIX
UNITAIRE7])+(Commandes!QUANTITE8*Commandes![PRIX UNITAIRE8]);
--
Avoir raison c''''est avoir le tort des autres