dbTalk Databases Forums  

how to make Me.OpenArgs.SetFocus work

comp.database.ms-access comp.database.ms-access


Discuss how to make Me.OpenArgs.SetFocus work in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
mharness
 
Posts: n/a

Default how to make Me.OpenArgs.SetFocus work - 09-12-2003 , 08:18 AM






Hello,

Does anyone know how to make Me.OpenArgs.SetFocus work? I'm trying to use
it to set the focus to a command button on a menu.

Thanks, Mike



Reply With Quote
  #2  
Old   
Allan Thompson
 
Posts: n/a

Default Re: how to make Me.OpenArgs.SetFocus work - 09-13-2003 , 01:05 PM






Mike,

I assume you want the focus to vary depending on the OpenArgs. Typically
you would put your code in the Form Open Event, e.g

if OpenArgs = "Product" then
cmdProduct.SetFocus
else
cmdRegion.SetFocus
endif

If this doesn't answer your question, please indicate what you are trying to
accomplish.
--
Allan Thompson
APT Associates/ FieldScope LLC
MS Office Automation / Measurement and Reporting Systems
www.fieldscope.com
860.242.4184


"mharness" <mike_harness (AT) hotmail (DOT) com> wrote

Quote:
Hello,

Does anyone know how to make Me.OpenArgs.SetFocus work? I'm trying to use
it to set the focus to a command button on a menu.

Thanks, Mike





Reply With Quote
  #3  
Old   
mharness
 
Posts: n/a

Default Re: how to make Me.OpenArgs.SetFocus work - 09-15-2003 , 06:11 AM



Hello Alan,

It's not what I dreamed of but it will of course do the job. I don't even
what to consider why I didn't think of it myself. Thanks very much for
pointing it out.

Mike

"Allan Thompson" <athompson (AT) fieldscope (DOT) com> wrote

Quote:
Mike,

I assume you want the focus to vary depending on the OpenArgs. Typically
you would put your code in the Form Open Event, e.g

if OpenArgs = "Product" then
cmdProduct.SetFocus
else
cmdRegion.SetFocus
endif

If this doesn't answer your question, please indicate what you are trying
to
accomplish.
--
Allan Thompson
APT Associates/ FieldScope LLC
MS Office Automation / Measurement and Reporting Systems
www.fieldscope.com
860.242.4184


"mharness" <mike_harness (AT) hotmail (DOT) com> wrote in message
news:yIadnR9OcdRlSPyiU-KYvw (AT) comcast (DOT) com...
Hello,

Does anyone know how to make Me.OpenArgs.SetFocus work? I'm trying to
use
it to set the focus to a command button on a menu.

Thanks, Mike







Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.