Paul
I have debugged and think i know where the problem is but still can't get the code to work. I have highlighted in red where i think the problem is:
The SQL I am copying is:
SELECT [PTS AC].[NI Number], IIf([PTS AC]![NI Number]=[NonOperational]![NINUMBER],"No","Yes") AS Operational, [PTS...