Hello,
I have a problem that I am not able to resolve. I have a table which I want to export to Excel. That' Ok, no problem with that.
What I would like to do is add the sum of different columns to my exportation and I haven't figured out how to do it.
Here is my code
This is working, but I don't know how to add the sum in there.
I need your help.
Thanks!
Gringo
I have a problem that I am not able to resolve. I have a table which I want to export to Excel. That' Ok, no problem with that.
What I would like to do is add the sum of different columns to my exportation and I haven't figured out how to do it.
Here is my code
Code:
cnConnect.Execute ("Select * Into Tempo From TableCPG Where No_Client = " & NoClient)
sNom = cnConnect.Execute("Select Nom_Client From Tempo").Collect(0)
DoCmd.OutputTo acOutputTable, "Tempo", acFormatXLSX, sPath & Year(datedeproduction) & "\" & sMois & "\" & sNom & ".xlsx"
This is working, but I don't know how to add the sum in there.
I need your help.
Thanks!
Gringo