Christopherusly
Village Idiot.
- Local time
- Today, 23:50
- Joined
- Jan 16, 2005
- Messages
- 81
If you download the attached database, unzip, then run - select Frm_home to stat from then run the Mini WIP Report - you will see what i am talking about.
I am working on a database which records hours spent working on time charge jobs per person - this is for the engineering consultancy for which i work, in their infinite wisdom they have migrated over to SAP which has proven a royal pain in the ass ( i loved crystal reports as I was allowed access to the back end, so could create whatever reports i needed, oh no not with SAP tho, they have to protect from the likes of me, damn it. )
Introducing the tables.
Finance - this table hold individual transaction details for each time someone books time to a job, so one job code can have many records associated with it (in this case there is on job with over 500 transactions recorded against it)
ID
Attr: Project Managee
Field2
Job NO
Job Title
Network Activity
Work Stage
Employee No
Staff Member
Amey Fiscal Week Year
HR
£
£ / HR
My first question is .... okay, here goes - what is the best way to produce a summary query to lead into a report which says, right, okay, you have 500 records for one unique job code, i am going to sum all of the hours, and costs up and give it to you in a single line - so rather than showing the detail of the spend profile for the job, you get the total hours / total £ fee for the job.
I thought i had cracked this using the TOTAL > Group By > SUM, this is giving me some rather erratic numbers back which i know are incorrect - see attached PDF (Mini WIP Report)
This next bit might make some of your go what is he doing, but it seemed like a good idea at the time.
I have a second table - will will call this: tbl_esttime - this hold the precicted time each member of staff will book against the job - so the estimated time, which in turn gives you a total fee value, the fields are as such:
Job NO
Staff Member
Hours
Now onto the messy part:
At the moment i run query one as a make table query which gives me:
Job NO
Job Title
HR
Rate
Spend
So this table calculates what the actually value of each time charge is worth against each job no.
now this is not enough for what i want, so we move onto query two
this summarises all the transactions into a single line for each job code used - from table one we just made. (messy i know, but its the only way i know) but it gives me what i want
from this we move onto query three this takes the totals of the job transactions from the finance table, and puts them beside the totals for the estimated hours - this seemed like a good idea at the time...
but when you look at the result - it is all horribly wrong.
So this gives me see attached WIP report example, where the math is obviously incorrect, when you look at the column names you have sumofsumofsumofcost - whcih is where i suspect something has gone awry, but i am damned if i know what ...
Please feel free to treat me as a complete idiot as i really am quite stuck and my knowledge of Access is no great than being a tinker and someone who just about gets by.
Thanks for any comments and suggestions you guys are able to offer, they are appreciated.
Note: the attached ZIP file is actually a winrar achive that i have renamed the extension of - as when in the ZIP format the DB was over the 2mb limit, with the winrar it is not.
I am working on a database which records hours spent working on time charge jobs per person - this is for the engineering consultancy for which i work, in their infinite wisdom they have migrated over to SAP which has proven a royal pain in the ass ( i loved crystal reports as I was allowed access to the back end, so could create whatever reports i needed, oh no not with SAP tho, they have to protect from the likes of me, damn it. )
Introducing the tables.
Finance - this table hold individual transaction details for each time someone books time to a job, so one job code can have many records associated with it (in this case there is on job with over 500 transactions recorded against it)
ID
Attr: Project Managee
Field2
Job NO
Job Title
Network Activity
Work Stage
Employee No
Staff Member
Amey Fiscal Week Year
HR
£
£ / HR
My first question is .... okay, here goes - what is the best way to produce a summary query to lead into a report which says, right, okay, you have 500 records for one unique job code, i am going to sum all of the hours, and costs up and give it to you in a single line - so rather than showing the detail of the spend profile for the job, you get the total hours / total £ fee for the job.
I thought i had cracked this using the TOTAL > Group By > SUM, this is giving me some rather erratic numbers back which i know are incorrect - see attached PDF (Mini WIP Report)
This next bit might make some of your go what is he doing, but it seemed like a good idea at the time.
I have a second table - will will call this: tbl_esttime - this hold the precicted time each member of staff will book against the job - so the estimated time, which in turn gives you a total fee value, the fields are as such:
Job NO
Staff Member
Hours
Now onto the messy part:
At the moment i run query one as a make table query which gives me:
Job NO
Job Title
HR
Rate
Spend
So this table calculates what the actually value of each time charge is worth against each job no.
now this is not enough for what i want, so we move onto query two
this summarises all the transactions into a single line for each job code used - from table one we just made. (messy i know, but its the only way i know) but it gives me what i want
from this we move onto query three this takes the totals of the job transactions from the finance table, and puts them beside the totals for the estimated hours - this seemed like a good idea at the time...
but when you look at the result - it is all horribly wrong.
So this gives me see attached WIP report example, where the math is obviously incorrect, when you look at the column names you have sumofsumofsumofcost - whcih is where i suspect something has gone awry, but i am damned if i know what ...

Please feel free to treat me as a complete idiot as i really am quite stuck and my knowledge of Access is no great than being a tinker and someone who just about gets by.
Thanks for any comments and suggestions you guys are able to offer, they are appreciated.
Note: the attached ZIP file is actually a winrar achive that i have renamed the extension of - as when in the ZIP format the DB was over the 2mb limit, with the winrar it is not.