>sylvia,
>i tried the updated code in the beginning of the valid event. it works the way i wanted it to work. i cant say i totally understand but it works.
>thanks again for the help. youve been helpful in the past also.
>frank
Frank, also you may add the logical property to your form which will be triggered in you button.click(), so you will know that the button was used.
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