Hi there,
I have a main form called 'Project', within the form 'Project' I have inserted a continous subform called 'SubProject'. Within 'Project' is a numeric field called 'Headcount' and within the subform 'Subproject' is also a numeric field called 'SubProjectHeadcount'. In my query i want to be able to sum the total headcount for the project, i.e the Headcount field plus the subProjectHeadcount field, but the problem that arises is that if there is more than one subproject than it sums the 'Headcount' field in the 'Project' form twice! i.e if the 'Headcount' field has the value 10, and in the subform there are two subprojects whose 'SubProjectHeadcount' values are 5 and 7, then my query should show the total headcount as being 22, but it returns a value of 32, because it adds the 10 from the 'Profect' form twice. How can I overcome this problem?? Sorry if this was a bit long-winded!!
Thanks for any comments or answers
Cheers
nia
I have a main form called 'Project', within the form 'Project' I have inserted a continous subform called 'SubProject'. Within 'Project' is a numeric field called 'Headcount' and within the subform 'Subproject' is also a numeric field called 'SubProjectHeadcount'. In my query i want to be able to sum the total headcount for the project, i.e the Headcount field plus the subProjectHeadcount field, but the problem that arises is that if there is more than one subproject than it sums the 'Headcount' field in the 'Project' form twice! i.e if the 'Headcount' field has the value 10, and in the subform there are two subprojects whose 'SubProjectHeadcount' values are 5 and 7, then my query should show the total headcount as being 22, but it returns a value of 32, because it adds the 10 from the 'Profect' form twice. How can I overcome this problem?? Sorry if this was a bit long-winded!!
Thanks for any comments or answers
Cheers
nia