*Rangelow return iif(thisform.custType.value = "Premium",1000,10) *Rangehigh return iif(thisform.custType.value = "Premium",100000,999)In short you could put there any code that would return a numeric value. As help says it's fired after lostfocus and control doesn't lose focus if returned value smaller (Rlow) or greater (Rhigh). If entered value doesn't obey the returned value an appropriate message displayed. To replace that message with yours, set notify off and use "wait win" or "messagebox()" in your code.