Forum Discussion
emuha78
Sep 20, 2020Copper Contributor
Acces, déplacement d'information de tableau
Bonjour, J'ai une première table qui comprend un total (photo 1). Mon but est de récupérer cette valeur afin de la mettre dans un autre table pour d'effectuer des opération dessus (photo 2) La val...
Woldman
Sep 25, 2020Iron Contributor
My French is rather poor, so I answer in English. This query should fill the V-column with the total:
UPDATE Compte
SET V = DSUM("prix", "commende")
Hope this works.
Best wishes,
Tieme
- emuha78Oct 02, 2020Copper Contributor
Et ou es ce que je doit écrire ca ?
Excuser moi si la question est bête mais je suis pas très bon en accès
- WoldmanOct 08, 2020Iron Contributor
You need to enter this in a query.
Steps:
- Make a copy/backup of your Access-database.
- Choose Create > Query Design.
- Close the Show Table window.
- Choose SQL View.
- Enter the query:
UPDATE Compte
SET V = DSUM("prix", "commende") - Choose ! Run
- Choose Yes on the update message.
- Save the query and give it a distinctive name, so you can run it later on your convenience. If you close the query it will ask you automatically to save and name it.
Best wishes,
Tieme