>IF EMPTY(tmonth) >=MESSAGEBOX(' Month is empty') >thisform.month.setfocus >RETURN 0 > >*********** > >iF EMPTY(tmonth),=MESSAGEBOX(' Month is empty') thisform.month.setfocus RETURN 0 > > >ENDIFEven if you can put it all in one line, you shouldn't. It's bad design and makes it harder to maintin your code.