>>Why is it that on some of my forms, when I press ENTER while on a textbox, the focus goes to the next control in the tab order and on others it does not?
>>
>>TIA
>
>
>Do you have a Command Button where the Default property = .T.?
>
>FYI, Enter is not supposed to advance to the next field. Enter is supposed to fire the Click method of the default command button.
I found the problem. As it turns out I put a SetFocus to command button in the init of the form .I don't know why that created a problem but removing it solved it. What should the ENTER key do if there is no default command button? I'm in the process of rewriting an old legacy program. The users are use to using the ENTER key to advance to the next field. I'd like to mimic this behavior if possible. any suggestions?
Alan Trosky
MIS Director
Pennsylvania Bar Association
Harrisburg PA 17108