p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Access VBA (http://p2p.wrox.com/forumdisplay.php?f=80)
-   -   Setfocus from button on Commandbar (http://p2p.wrox.com/showthread.php?t=7679)

simmy December 28th, 2003 08:15 AM

Setfocus from button on Commandbar
 
I am using a button on a command bar to change a subform on my main form. My problem is that it doesn't set the focus to the subfrom or any control on it. I have tried using setfocus on both the subform and controls on it, no luck.

Please help!
Thanks!


Deepesh_Jain December 29th, 2003 01:30 AM

Try to activate the form explicitly using the code.

Deepesh Jain
VB,VBA & .NET Specialist
Wiley Support Team

SerranoG December 29th, 2003 11:45 AM

http://p2p.wrox.com/topic.asp?TOPIC_ID=8044

Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division


All times are GMT -4. The time now is 04:43 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.