Thanks for the reply,
It didn't work but I think I might have something to play with there,
Meanwhile I got this to work
"SELECT DISTINCT Orders.* FROM (Orders INNER JOIN Material ON Orders.RJKNo = Material.RJKNo) LEFT JOIN Hours ON Orders.RJKNo = Hours.RJKNo WHERE Orders.InvoiceComplete = 'No'"
This will select all orders which are not complete and have a material entry against it in the Material Table but it doesn't find anything in the Hours Table.
Swap the word INNER and LEFT around and it will find all orders which are not complete and have Hours against it in the Hours Table but it doeesn't find anything in the Material Table
"SELECT DISTINCT Orders.* FROM (Orders LEFT JOIN Material ON Orders.RJKNo = Material.RJKNo) INNER JOIN Hours ON Orders.RJKNo = Hours.RJKNo WHERE Orders.InvoiceComplete = 'No'"
I need something which combines the two. Perhaps another INNER JOIN?
PS EDIT
I find if I change both words to INNER, I only got the orders which have BOTH Materials and Hours but not the orders which have Material only or Hours only
Edited by madius