>I have a command button i a form.
>This form is my fourth open form.
>In the click events i have this code
>thisform.text1.setfocus
>
>After clicking this command button i recieve this errormessage:
>Cannot call SetFocus from within a When, Valid, RangeHigh or RangeLow event (Error 2012)
>
>1 - I have not used the setfocus method within a When, Valid, RangeHigh or RangeLow event
>2 - When this form is the third form i dont recieve this error.
>Thanks.
Cemal, did you try to trace it and track the events in both cases?
Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison