Thanks Wil. Yes, checking to see if CodeMast/CodeType can be exclusively opened is certainly doable. In fact, in a later version of this logic, such a check is performed exactly the way you suggest .