troubleshooting Question

Must ... lose ... focus...

Avatar of Jim Horn
Jim HornFlag for United States of America asked on
Microsoft Access
8 Comments1 Solution1179 ViewsLast Modified:
Access subform, with a bunch of controls, and a label the size of the whole subform that says 'No records found.'

If Form.Open VBA code determines that there is a record, makes label.visible = false, all other controls.visible = true
If Form.Open VBA code determines that there is no record, makes label.visible = true, all other controls.visible = false

Problem is, one control will always have the focus,  so in my quest to make all other controls.visible = false, one must have the focus, therefore will always be active.

Question:  How do you set a form such that no control control that can have the focus, has the focus?

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 8 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros