IF EMPTY(m.organization) OR ISNULL(m.organization) OR ; LEN(ALLTRIM(m.organization)) = 1 OR ; LEN(ALLTRIM(m.organization)) = 3 OR ; LEN(ALLTRIM(m.organization)) = 5 Messagebox('Please check the Organization # again.',64) ThisForm.Text1.SetFocus() ENDIFThis was all I needed. Thanks for the helps anyway because it did helped me to use for other things. The thing I didn't realized was the InputMask was '999999', which do not allow spaces anywhere, not even in betweens, so that takes care of everything. The tests I did was from the Command Window. Thanks again.