>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.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)