>> I will go read some more to find out why I have to do the Cancel
>> of the whole process in order for the setFocus to do it's thing
[quoted text clipped - 14 lines]
>
>Tim F
YOU should be writing computer manuals and books if you aren't
already. While I am very good at some things in the computer world
coding has never been one of them because when trying to find answers
in help files or books they always seem to be programmer oriented
instead of explanatory.
IE:
I should be able to:
a> Check for the Null
b> Display the MSG box if the condition exists
and Kick the user backwards without having to CANCEL anything.
Oh well, some day Artificial Intelligence will make this whole process
obsolete.
Probably not in my lifetime though.
John Vinson - 23 Dec 2004 22:58 GMT
>Oh well, some day Artificial Intelligence will make this whole process
>obsolete.
I'm reminded of a cartoon (from thirty or so years ago): two
scientists looking at a computer monitor, and one saying "Well, it
figures, I guess; if there's artificial intelligence, there was bound
to be artificial stupidity!"
<g, d & r>
John W. Vinson[MVP]
Tim Ferguson - 24 Dec 2004 08:35 GMT
> a> Check for the Null
> b> Display the MSG box if the condition exists
> and Kick the user backwards without having to CANCEL anything.
Sorry if you don't like the language that Microsoft uses, but setting
Cancel=True _is_ kicking the user backwards. Think of it this way: what you
are cancelling is the user's request to move to a different control.
If you still don't like it, there is no rule to say the formal parameter
has to be called Cancel:
Private Sub RecipeName_Exit( KickUserBackwards As Integer)
Is IsNull(RecipeName) Then
'....
KickUserBackwards = True
End If
End Sub
Does that make you feel better? If you still don't like even this approach,
and you have an emotional attachment to the SetFocus method, then you'll
just have to use the LostFocus event, which takes place after the focus has
left your RecipeName control and will therefore have a visible effect.
Hope that helps
Tim F