Screen.ActiveControl

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can someone explain when Screen.ActiveControl can be used?
Yes, I already looked in Help.

I have an open form and a control has the focus - referencing
Screen.ActiveControl gives me error 2474 (expression entered requires control
to be in the acvive window). The statement has worked for at least 6 months
until yesterday.

I'm trying to debug an error. Have spent over 8 hours on this so far...
Any help appreciated.
 
Is this only happening when you use a breakpoint? Cancel all breakpoints,
and stick a debug.print after you assign a variable and check it after the
form is closed.

Damon
 
Back
Top