By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,400 Members | 953 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,400 IT Pros & Developers. It's quick & easy.

Active forms

P: n/a
Hi

Is there a way to find out the form that is currently open, active and has
focus?

Thanks

Regards
Nov 12 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Fri, 20 Feb 2004 21:14:13 -0000, "John" <Jo**@nospam.infovis.co.uk>
wrote:
Hi

Is there a way to find out the form that is currently open, active and has
focus?

Thanks

Regards


In VBA you could use Screen.ActiveForm.Name.

You'd need to be careful to trap for run-time error 2475: You entered
an expression that requires a form to be the active window.

--
Mitchell Kirschner
-MS Access Consulting
-Free developer utilities!
http://www.kirsol.com

Nov 12 '05 #2

P: n/a
John wrote:
Hi

Is there a way to find out the form that is currently open, active and has
focus?


Screen.ActiveForm

--
Bas Cost Budde
http://www.heuveltop.org/BasCB
but the domain is nl

Nov 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.