>The problem with that, Thomas, is that you have to basically hard code the tab order of the controls to know where the focus will go when you do that. To me it's tantamount to using workarea numbers instead of aliases. It works, but...
Not that I'd bother, but wouldn't it simply be a case of:
RETURN ( THISFORM.Target.TabIndex - THIS.TabIndex )
(Assuming, of course, they are at least in the same container).