Does the messagebox show up? Are you sure there are no typos?
>hi, > >i try to do this statment but nothing happend > >thisform.pagefram1.page1.text1.setfocus > >
>If NOT BETWEEN(thisform.pagefram1.page1.text1.value,0,2)
> =messagebox("the range from 1 to 2 only")
> thisform.pagefram1.page1.text1.setfocus&& nothing happend
>else
>......
>endif
>