Acces, déplacement d'information de tableau

%3CLINGO-SUB%20id%3D%22lingo-sub-1688428%22%20slang%3D%22fr-FR%22%3EAccess%2C%20table%20information%20removal%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1688428%22%20slang%3D%22fr-FR%22%3E%3CP%3EGood%20morning%3C%2FP%3E%3CP%20class%3D%22chattext-body%22%3EI%20have%20a%20first%20table%20that%20includes%20a%20total%20(photo%201).%20My%20goal%20is%20to%20recover%20this%20value%20in%20order%20to%20put%20it%20in%20another%20table%20to%20perform%20operations%20on%20it%20(photo%202)%3C%2FP%3E%3CP%20class%3D%22chattext-body%22%3EThe%20value%20that%20needs%20to%20be%20transferred%20is%3A%2015%20degrees%20and%20it%20has%20to%20be%20transferred%20to%20each%20square%20of%20the%20v%20column%20so%20that%20I%20can%20perform%20operations%20on%20it%3C%2FP%3E%3CP%20class%3D%22chattext-body%22%3EI%20can't%20figure%20out%20how%20to%20do%20it%2C%20could%20someone%20help%20me%3C%2FP%3E%3CP%20class%3D%22chattext-body%22%3Ethank%20you%20in%20advance%3C%2FP%3E%3CDIV%20class%3D%22chat-footer%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1688428%22%20slang%3D%22fr-FR%22%3E%3CLINGO-LABEL%3EAccess%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1712142%22%20slang%3D%22en-US%22%3ERe%3A%20Acces%2C%20d%C3%A9placement%20d'information%20de%20tableau%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1712142%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F800394%22%20target%3D%22_blank%22%3E%40emuha78%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20French%20is%20rather%20poor%2C%20so%20I%20answer%20in%20English.%20This%20query%20should%20fill%20the%20V-column%20with%20the%20total%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-sql%22%3E%3CCODE%3EUPDATE%20Compte%0ASET%20V%20%3D%20DSUM(%22prix%22%2C%20%22commende%22)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20this%20works.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20wishes%2C%3C%2FP%3E%3CP%3ETieme%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1739885%22%20slang%3D%22fr-FR%22%3ERe%3A%20Access%2C%20table%20information%20removal%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1739885%22%20slang%3D%22fr-FR%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F131546%22%20target%3D%22_blank%22%3E%40Tieme%20Woldman%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnd%20where%20do%20I%20have%20to%20write%20this%3F%3C%2FP%3E%3CP%3EExcuse%20me%20if%20the%20question%20is%20silly%20but%20I'm%20not%20very%20good%20in%20access%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1757791%22%20slang%3D%22en-US%22%3ERe%3A%20Acces%2C%20d%C3%A9placement%20d'information%20de%20tableau%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1757791%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F800394%22%20target%3D%22_blank%22%3E%40emuha78%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20need%20to%20enter%20this%20in%20a%20query.%3C%2FP%3E%3CP%3ESteps%3A%3C%2FP%3E%3COL%3E%3CLI%3EMake%20a%20copy%2Fbackup%20of%20your%20Access-database.%3C%2FLI%3E%3CLI%3EChoose%20%3CSTRONG%3ECreate%20%26gt%3B%20Query%20Design%3C%2FSTRONG%3E.%3C%2FLI%3E%3CLI%3EClose%20the%20%3CEM%3EShow%20Table%3C%2FEM%3E%20window.%3C%2FLI%3E%3CLI%3EChoose%20%3CSTRONG%3ESQL%20View%3C%2FSTRONG%3E.%3C%2FLI%3E%3CLI%3EEnter%20the%20query%3A%26nbsp%3B%3CBR%20%2F%3E%3CSTRONG%3EUPDATE%20Compte%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3ESET%20V%20%3D%20DSUM(%22prix%22%2C%20%22commende%22)%3C%2FSTRONG%3E%3C%2FLI%3E%3CLI%3EChoose%20%3CSTRONG%3E!%20Run%3C%2FSTRONG%3E%3C%2FLI%3E%3CLI%3EChoose%20%3CSTRONG%3EYes%3C%2FSTRONG%3E%20on%20the%20update%20message.%3C%2FLI%3E%3CLI%3ESave%20the%20query%20and%20give%20it%20a%20distinctive%20name%2C%20so%20you%20can%20run%20it%20later%20on%20your%20convenience.%20If%20you%20close%20the%20query%20it%20will%20ask%20you%20automatically%20to%20save%20and%20name%20it.%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20wishes%2C%3C%2FP%3E%3CP%3ETieme%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1791831%22%20slang%3D%22fr-FR%22%3ERe%3A%20Access%2C%20table%20information%20removal%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1791831%22%20slang%3D%22fr-FR%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F131546%22%20target%3D%22_blank%22%3E%40Tieme%20Woldman%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20I%20enter%20the%20information%20you%20have%20give%20me%20an%20error%20message%20appears%3C%2FP%3E%3CP%3EAlso%20when%20I%20start%20again%20by%20removing%20SELECT%3B%20a%20new%20message%20appears%3C%2FP%3E%3CP%3EWhat%20should%20I%20do%3C%2FP%3E%3CP%3Ethank%20you%20in%20advance%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

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 valeur qui doit donc être transférer est : 15€ et elle doit être transférer dans chaque case de la colonne v afin que je puisse effectuer des opération dessus

Je ne trouve pas comment faire, quelqu'un pourrais t'il m'aider

merci d'avance 

5 Replies
Highlighted

@emuha78 

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

Highlighted

@Tieme Woldman 

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

Highlighted

@emuha78 

You need to enter this in a query.

Steps:

  1. Make a copy/backup of your Access-database.
  2. Choose Create > Query Design.
  3. Close the Show Table window.
  4. Choose SQL View.
  5. Enter the query: 
    UPDATE Compte
    SET V = DSUM("prix", "commende")
  6. Choose ! Run
  7. Choose Yes on the update message.
  8. 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

 

Highlighted

@Tieme Woldman 

Lorsque je rentre les information que vous m'avez donner un message d'erreur apparait

De plus lorsque que je recommence en supprimant SELECT; un nouveau message apparait

Que doit-je faire

merci d'avance 

Highlighted

@emuha78 

Just to be sure: you shouldn't use the SELECT keyword, but the UPDATE keyword. And the other issue could be with the double quotes, so maybe you can try single quotes:

UPDATE Compte
SET V = DSUM('prix', 'commende')

 

Good luck