if thisform.combo1.value="TO CASH" thisform.mchno.enabled=.t. thisform.mdr.enabled=.t. thisform.mchno.setfocus Return .T. endif IF thisform.combo1.value="BY CASH" thisform.mCr.enabled=.t. thisform.mcr.setfocus Return .t. endif>Thanks for the help. But I am facing the following problem.
>if thisform.combo1.value="TO CASH"
>thisform.mchno.enabled=.t.
>thisform.mdr.enabled=.t.
>endif
>thisform.mchno.setfocus
>
>IF thisform.combo1.value="BY CASH"
>thisform.mCr.enabled=.t.
>endif
>
>thisform.mcr.setfocus
>
><\pre>
>Now, if I choose "To Cash" by useing upper key or "T" or "B" the focus is not firing. But when I am doing same by mouse it is fine.
>How I can get the same result when I use keyboard to find the field? Actually I want that both the system will in force.Sanjay Dhiraj Patel
MCSE, MCDBA
Net2Biz (Thailand)