OnFocus or OnEnter ?
Posted on 2003-02-25
I have lots of confusion over OnFocus and OnEnter property of controls.
I have this control User ID to let user input their ID,
if the ID is in the database, the form will show the description of the person and has to enter the number of times he's here, if not it will prompt the person to enter his description on another Form.
What I have done :-
Show UserID 1st, hide the rest.
If the UserID is in database, unhide the description control set focus to te control he will key in the number of times he visited
else call another form to add his description.
I have another button to allow the user to update his database.
So when the user key in the USerID, I set the check for the data OnLostFocus, but everytime I press the close(x) button, it will prompt me to enter my ID before closing the form.
When I use the onEnter property of the button, it keep setting focus on the Times control !
If you guys out there got a better way to sort out the OnFocus and OnEnter property,
DO advice !