Thank you for persevering with this. I am not having much luck. I tried the proposed change. Following is my SQL. Pl see if these can be amended in some ways.
SELECT tblStores.StoreID, tblStores.Location, NZ([Priority],0) AS Expr1, Val(NZ([Priority],99999)) AS FPriority, tblProjects.Priority...