If you reset Me.test in each case, I don't see why you need to check it in each case.
You know that once you enter in a case, the other ones are skipped. So if you set Me.test= null at the end of the Select. The number will always be null the next time the function is called.
Or am I missing...