>Thread denizens,
>
>I have two issues at the moment.
>
>It appears that the combo box valid event does not always fire when the style is set to drop down list. I would like to force the user to enter a value in the combo box before clicking the add button. Is there an easy way to do this other than programmatically enabling and disabling assorted controls? The lost focus event wont let you set focus back to the calling control. Other ideas?
Hans,
You certainly can use the lostfocus event to setfocus back to the same control.
IF SomeCondition
This.SetFocus()
NODEFAULT
ENDIF
You must issue a NODEFAULT to stop fox from doing its default of moving focus after you have set it elsewhere.