Screen.ActiveControl

M

mscertified

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.
 
D

Damon Heron

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top