G
Guest
I am trying to create an underlying query for a report. Here is the data I
have:
- I created a cross-tab query that takes employee timecard information and
summarizes it by:
Employee name, Total Hours, and then breaks it out by the type of
hours...and sums together those types of hours for each employee (there are 3
main types of hours but sub-types within those 3).
An example of the data I would get
Name Hours Development Client Training Internal Sick Leave
Heather 80 20 20 20 10 10
The cross-tab is displaying and summing the data how I would like.
Then... I want to add more data to the report than what I can display in a
cross-tab, so I created another query that has the cross-tab as one of it's
sources as well as my employee table. I also wanted to create a SUM of the
hours for each of my 3 main types - CLIENT (Client), INTERNAL (Development +
Internal), OTHER (Training + Sick Leave). This is where I'm having a
problem. In the NEW query I created, I added a field that says INT:
[Development]+[Internal]. When I run this query, it doesn't SUM unless both
of the fields have something in them. I can't figure out why?? If I create
a field that does division, like DevPercentage: [Development]/[Hours] it
works just fine.
Any ideas?
Thanks!
Heather
have:
- I created a cross-tab query that takes employee timecard information and
summarizes it by:
Employee name, Total Hours, and then breaks it out by the type of
hours...and sums together those types of hours for each employee (there are 3
main types of hours but sub-types within those 3).
An example of the data I would get
Name Hours Development Client Training Internal Sick Leave
Heather 80 20 20 20 10 10
The cross-tab is displaying and summing the data how I would like.
Then... I want to add more data to the report than what I can display in a
cross-tab, so I created another query that has the cross-tab as one of it's
sources as well as my employee table. I also wanted to create a SUM of the
hours for each of my 3 main types - CLIENT (Client), INTERNAL (Development +
Internal), OTHER (Training + Sick Leave). This is where I'm having a
problem. In the NEW query I created, I added a field that says INT:
[Development]+[Internal]. When I run this query, it doesn't SUM unless both
of the fields have something in them. I can't figure out why?? If I create
a field that does division, like DevPercentage: [Development]/[Hours] it
works just fine.
Any ideas?
Thanks!
Heather