Hi Hilmar,
I solved my problem by putting in lostfocus false condition.
nodefault
this code keep cursor on same text if condition fail on lost focus.
Could you reply my new thread for grid problem please.
Thanks,
>>Thanks Hilmar,
>>
>>If I am using lostfocus to validate. And condition is not tru than my cursor not staying in same filed. if i write. Thisform.text1.setfocus
>>its giving error cannot call from valid,when,rangelow range hign. while i am using this line in lost focus I an not using any four method. How can cursor stay in same file if i use lostfocus. Please write actual code.
>
>I can't post actual code, since I don't do this - I tried to help with a few ideas, which may, or may not, point you in the correct direction.
>
>What I do is forget about controlling the focus for validation purposes. Instead, I check a series of rules only when the user tries to save. IMO, this approach is much simpler.
>
>HTH, Hilmar.
Sajjad Ahmad