oh yeah, sorry didnt read that properly
yes, that is one of the ways i am looking at.
I have managed to get all my info out in one sql, however as it is unioned, i get data in two blocks and want to combine them and then re-sort... but that sounds like another thread.
I will keep your suggestion in mind tho Martin.
SELECT 'jobcost1',
sum(JOBLINE.Joblinecost) jobcost , sum(0) manhours, sum(0) machinehours, machine.ref fork
FROM
JOBLINE JOIN
JOB ON JOBLINE.JobID = JOB.JobID
join machine on machine.machineid = job.machineid
WHERE
JOBLINE.workDate BETWEEN '01/01/03' AND '07/31/03'
group by machine.ref
UNION
SELECT 'entries1',
sum(0) jobcost, sum(ENTRY.Quantity) manhours, sum(ENTRY.EndQuantity - ENTRY.StartQuantity) machinehours, machine.ref fork
FROM
ENTRY
join machine on entry.machineid = machine.machineid
WHERE
ENTRY.EntryDate BETWEEN '01/01/03' AND '07/31/03'
and entry.companyid = 1
group by machine.ref