Col3+col4 what i really need to do is to multiply those two. Sorry i didn't explain myself properly, the second question was my trying to explain that i have a statement, select aircraft from defects where jobno = $jobno and taskno = $taskno; the table looks like this
taskno aircraft totaldefects totalcost
1 GHHJK 3 20
2 GHHJK 5 78
the totaldefects is a sum but it needs to select the taskno and the taskno isn't available till it runs the task query not sure if this makes any sense. the total defects has to match the taskno but there maybe a different no of tasks for a different aircraft. Hope that helps, thanks for you help 🙂