>I only have 1 form open, so I tried:
>
>? _screen.forms[1].activecontrol
>
>and it tells me that activecontrol is not an object.
>
>I tried:
>
>? _screen.forms[1].activecontrol.name
>
>and got the same error.
>
>I did this in the command window. Is it because the form no longer had the focus?
>
I think that's the case. ActiveControl is only valid while the form has the focus.