L
LMB
Right now I have my WorkedAreaHoursTotals query as a source for a crosstab query and it's working like I want it to. Now I want the hours on the crosstab query to show my hours as shifts worked rather than hours. A 12 hour period will be equal to 1. I know I need to fix this by changing the source query so here is the info about my source query. I will also want to only show the records for the current 1/2 year. So from Jan-June and July-Dec and I am not sure where I would add that criteria.
My query totals up hours employees work in a specific area. Our shifts are 12 hour shifts so I want the hours expressed in shifts worked and not hours. I think I need to add a field and make an expression using the WorkedAreaHours field which shows the sum when the query is run. I also think I need to divide by 12 so the expression will show 1 for 12, 2 for 24, 3 for 36 etc... sometimes people only work in an area for 4 or 6 hours so this needs to be able to show the answer in a decimal form....so if a person worked 12 hours one day and 6 another day in that area, the field would be 1.5.
Am I on the right track? If so, now I don't know how to make the expression or what it should say. I use the query grid to make my querys and not writing the sql.
Access 2000
Thanks,
Linda
My query totals up hours employees work in a specific area. Our shifts are 12 hour shifts so I want the hours expressed in shifts worked and not hours. I think I need to add a field and make an expression using the WorkedAreaHours field which shows the sum when the query is run. I also think I need to divide by 12 so the expression will show 1 for 12, 2 for 24, 3 for 36 etc... sometimes people only work in an area for 4 or 6 hours so this needs to be able to show the answer in a decimal form....so if a person worked 12 hours one day and 6 another day in that area, the field would be 1.5.
Am I on the right track? If so, now I don't know how to make the expression or what it should say. I use the query grid to make my querys and not writing the sql.
Access 2000
Thanks,
Linda