Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2011

    Unanswered: Sorry to ask this?

    Is there a way to get sums in a select query?

    I have problems when I try to use a crosstab so this is my dilemna.

    I have a field in my query named Hours, how can I get the sum of this?

  2. #2
    weejas is offline Grumpy old man (training)
    Join Date
    Sep 2006
    Surrey, UK
    Provided Answers: 18
    SELECT Sum([Hours]) AS SumOfHours
    This usually works! Of course, it depends on the data type of the field in question. If it's set to Date/Time, you might see unexpected results as Access stores time as a decimal fraction of a day.
    10% of magic is knowing something that no-one else does. The rest is misdirection.
    Beers earned: 2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts