Try adding DODEFAULT() before the other control SetFocus()
>Here is the chunk of code from the End Date LostFocus
>
>case !empty(this.value) and empty(thisform.txtBegDate.value)
> wait window "Range Must have a Begin Date"
> thisform.txtBegDate.SetFocus()
>
>the wait window will be replaced with the application Error Message, but right now I'm working outside of the app, just on the form.
>unfortunately, it's not setting focus back to txtBegDate
>
If it's not broken, fix it until it is.
My Blog