dbTalk Databases Forums  

Need to click Twice on command button

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


Discuss Need to click Twice on command button in the comp.databases.ms-access forum.



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

Default Need to click Twice on command button - 12-09-2011 , 12:23 AM






I'm using Access 2010.
I have a tab form with a list box (exposed to all tab pages).
If I reset the recordsource for the main form, and then set the focus on
the list box (using VBA), I need to click twice on controls in the main
form before they accept the focus. If I use the ALT shortcut key, the
focus shifts immediately.
If I open the form, without resetting the recordsource, there is no problem.
Any ideas welcome.
--
Bob Darlington
Brisbane

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

Default Re: Need to click Twice on command button - 12-11-2011 , 03:31 AM






"Bob Darlington" <bob (AT) dpcman (DOT) com.au> skrev i en meddelelse
news:4ee1a952$0$21398$c3e8da3$96d63e41 (AT) news (DOT) astraweb.com...
Quote:
I'm using Access 2010.
I have a tab form with a list box (exposed to all tab pages).
If I reset the recordsource for the main form, and then set the focus on
the list box (using VBA), I need to click twice on controls in the main
form before they accept the focus. If I use the ALT shortcut key, the
focus shifts immediately.
If I open the form, without resetting the recordsource, there is no
problem.
Any ideas welcome.
Try first to give Focus to the Form, and then give Focus to the Field...
Bjarne

Reply With Quote
  #3  
Old   
Bob Darlington
 
Posts: n/a

Default Re: Need to click Twice on command button - 12-11-2011 , 04:49 PM



On 11/12/2011 7:31 PM, bsn wrote:
Quote:
"Bob Darlington"<bob (AT) dpcman (DOT) com.au> skrev i en meddelelse
news:4ee1a952$0$21398$c3e8da3$96d63e41 (AT) news (DOT) astraweb.com...
I'm using Access 2010.
I have a tab form with a list box (exposed to all tab pages).
If I reset the recordsource for the main form, and then set the focus on
the list box (using VBA), I need to click twice on controls in the main
form before they accept the focus. If I use the ALT shortcut key, the
focus shifts immediately.
If I open the form, without resetting the recordsource, there is no
problem.
Any ideas welcome.

Try first to give Focus to the Form, and then give Focus to the Field...
Bjarne


Thanks Bjarne, but it is already doing so.

--
Bob Darlington
Brisbane

Reply With Quote
  #4  
Old   
buckskin
 
Posts: n/a

Default Re: Need to click Twice on command button - 12-11-2011 , 09:51 PM



"Bob Darlington" <bob (AT) dpcman (DOT) com.au> wrote

Quote:
On 11/12/2011 7:31 PM, bsn wrote:
"Bob Darlington"<bob (AT) dpcman (DOT) com.au> skrev i en meddelelse
news:4ee1a952$0$21398$c3e8da3$96d63e41 (AT) news (DOT) astraweb.com...
I'm using Access 2010.
I have a tab form with a list box (exposed to all tab pages).
If I reset the recordsource for the main form, and then set the focus
on
the list box (using VBA), I need to click twice on controls in the main
form before they accept the focus. If I use the ALT shortcut key, the
focus shifts immediately.
If I open the form, without resetting the recordsource, there is no
problem.
Any ideas welcome.

Try first to give Focus to the Form, and then give Focus to the Field...
Bjarne



Thanks Bjarne, but it is already doing so.

--
I'm suddenly having this problem with a command button in a subform in
Access 2000. Will try to fix and see if that might apply to your problem.

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.