Hi Guys
I am writing the following query and it gives me above error message at RAG. Any help will be much appreciated.
	
	
	
		
 I am writing the following query and it gives me above error message at RAG. Any help will be much appreciated.
		Code:
	
	
	SELECT qry_Model_AnnualTest.StaffName, qry_Model_AnnualTest.AnnualTest, qry_Model_AnnualTest.Date_Completed, IIf([RAG]=1,"Red",IIf([RAG]=2,"Amber","Green")) AS Priority
FROM qry_Model_AnnualTest
WHERE (((qry_Model_AnnualTest.DateEnd) Is Null));