Yes, whe you tabed there is no ActiveControl of the form in When event of the button. I see what you mean when you point to use TYPE() vs VARTYPE(). But I think there is no need to Set oLastActiveControl in the TextBox aftre all if you tabed to Button the Button is LastActive Control.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.