Thanks for that sszettella getting close but it still will not work; looking at it I think I have to have the first part of the query ? returning something as if it is empty or not found the other AND, OR do not cut in.
I suppose I could have another column that will always has the same result and do the original query on that ?
More thought required today I think. Some other thoughts I had last night below.
Anthony
Below is the query I think I want written out in a simpler way ?
Another thought is do the first query which will then give me an array with all the referance numbers of rows that contain the error. I would then need to do the next query on the sypmtom using the results returned from the first query and so on.