G
Guest
Hello,
I have a db that has the following elements:
Tables:
Employee
Meeting_Hours
Training_Hours
The Meeting_Hours and Training_Hours have identical fields:
Date: short date
Hours: number
They are related to the Employee table using a 1-to-many.
I need to create a query that will sum the Meeting_Hours for a given
employee for the current month. If no entry is found for a given employee
for the current month then the sum should be 0. Can someone help me with
this?
I can get the data ok for the current month if a record exits, but I am not
sure how to display 0 when a record does not exist. I need this query for a
report that will show the monthly totals for each employee even if they have
logged 0 hours.
TIA
Jeff
I have a db that has the following elements:
Tables:
Employee
Meeting_Hours
Training_Hours
The Meeting_Hours and Training_Hours have identical fields:
Date: short date
Hours: number
They are related to the Employee table using a 1-to-many.
I need to create a query that will sum the Meeting_Hours for a given
employee for the current month. If no entry is found for a given employee
for the current month then the sum should be 0. Can someone help me with
this?
I can get the data ok for the current month if a record exits, but I am not
sure how to display 0 when a record does not exist. I need this query for a
report that will show the monthly totals for each employee even if they have
logged 0 hours.
TIA
Jeff