DO CASE CASE thisform.Combo1.Value = [TO CASH] STORE .t. TO thisform.mchno.enabled,; thisform.mdr.enabled thisform.mchno.setfocus() CASE thisform.Combo1.Value = [BY CASH] thisform.mCr.enabled=.t. thisform.mcr.setfocus() ENDCASE>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.Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.