dbTalk Databases Forums  

Moving Focus From Option Group

comp.databases.ms-access comp.databases.ms-access


Discuss Moving Focus From Option Group in the comp.databases.ms-access forum.



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

Default Moving Focus From Option Group - 04-27-2011 , 12:09 PM






Moving Focus From Option Group:

I have a form with two option groups on, which generate separate reports. When I click on one of the options within the group, the
report comes up. At the same time I wish to remove the focus from the relevant button so the user has a clean slate so to speak,
as if he wants to press the same button again, he has to selct another option then go back.

I would like to set the focus to the exit button of the form exitcombut, being the controls name.

I have tried Me.exitcombut.Setfocus within the individual Select Case statement, and at all positions within the subroutine and it
does not move the focus away from the originally selected button. I have also tried direct adressing of the form as in:

Me!DefectForm!exitcombut.Setfocus, in the same positions, but also with no result.

Is ther a trick to doing this from within an Option GRoup?

TVM

J


--
--------------------------------- --- -- -
Posted with NewsLeecher v4.0 Final
Web @ http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -

Reply With Quote
  #2  
Old   
bobh
 
Posts: n/a

Default Re: Moving Focus From Option Group - 04-27-2011 , 12:21 PM






On Apr 27, 1:09*pm, bezz <b... (AT) hotmail (DOT) com> wrote:
Quote:
Moving Focus From Option Group:

I have a form with two option groups on, which generate separate reports.*When I click on one of the options within the group, the
report comes up. *At the same time I wish to remove the focus from the relevant button so the user has a clean slate so to speak,
as if he wants to press the same button again, he has to selct another option then go back. *

I would like to set the focus to the exit button of the form exitcombut, being the controls name.

I have tried Me.exitcombut.Setfocus within the individual Select Case statement, and at all positions within the subroutine and it
does not move the focus away from the originally selected button. *I have also tried direct adressing of the form as in:

Me!DefectForm!exitcombut.Setfocus, in the same positions, but also with no result.

Is ther a trick to doing this from within an Option GRoup?

TVM

J

--
--------------------------------- --- -- -
Posted with NewsLeecher v4.0 Final
Web @http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -
you could do the set focus on the report open or close event, as in

Forms![frmMyForm]![btnMyButton].SetFocus

bobh.

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

Default Re: Moving Focus From Option Group - 04-27-2011 , 05:39 PM



Sort of fixed it thanks, it was actually two issues the set focus and setting the option group back to Null at the end of select
case routine. I hadn't noticed before because the toggle button was still staying coloured. The focus was being set as it
happens, but I needed to use the Set control to Null to refresh the group. Every day is a schoolday !

TVM
J


--
--------------------------------- --- -- -
Posted with NewsLeecher v4.0 Final
Web @ http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -

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.