Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Access Query - Total?

Guest
May 07, 2008 May 07, 2008
Hello~

I have query running in Access that works great, but I would like to add a field to the end of the results that sums up the total number of hours from each "week" table. Can anyone help? Thanks!

KC
TOPICS
Database access
571
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , May 08, 2008 May 08, 2008
ever tried this?

select numericfield1 + numericfield2 thesum
from etc
Translate
Mentor ,
May 07, 2008 May 07, 2008
Wow, what a horrid data model/structure. Why a different table for each week? What happens if you add a week21? Why not have a single week total table where there is an attribute (column) for week number so that you could select from a single table? It would sure make getting a total figure much easier.

Phil
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 08, 2008 May 08, 2008
I agree with you about the structure, but unfortunately this is an inherited application, and I do not have the resources at this time to rebuild it. There is never going to be a week21, which helps, but still... I would appreciate any advice on this Total problem! Thanks!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 08, 2008 May 08, 2008
ever tried this?

select numericfield1 + numericfield2 thesum
from etc
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 08, 2008 May 08, 2008
LATEST
OK! I used the sum function, and it is actually working!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources