I've got a complex query (54 lines of pass-through to MySQL, Access died on this query) that among a bunch of other information returns:
It works fine most of the time, each employee logs their hours and those get summed up in the SQL. Where it falls down is when more than one employee works on a single job. The number of hours assigned to the job are getting summed my the report, so if 2 people worked on it, the assigned hours would be 2x what they should be. I have tried to use
but it asks me for the value for the field. What would be a better solution?
Code:
contract #, employee, job #, hours assigned to job#, hours worked on job #
note: a contract consists of multiple job #'s
It works fine most of the time, each employee logs their hours and those get summed up in the SQL. Where it falls down is when more than one employee works on a single job. The number of hours assigned to the job are getting summed my the report, so if 2 people worked on it, the assigned hours would be 2x what they should be. I have tried to use
Code:
=sum([Field name on form])
but it asks me for the value for the field. What would be a better solution?