dbTalk Databases Forums  

SendKeys fails in Windows 7, Any alternatives in Access?

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


Discuss SendKeys fails in Windows 7, Any alternatives in Access? in the comp.databases.ms-access forum.



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

Default SendKeys fails in Windows 7, Any alternatives in Access? - 10-19-2011 , 11:42 AM






SendKeys causes a debugger interruption in Windows 7. I posted the
message below to Windows 7 group, and got sympathy, but no solutions
to the problem. Is there an Access command other than SendKeys{f4}
that will cause the drop-down list to appear? Thanks.
---------------------
The following command failed when used in Access 2003 running on
Windows 7:

SendKeys "{f4}" ' causes drop-down names list on hitting first key

It causes the debug window to open, which the user cannot deal with..
This command has worked for 12 years in Access 95, 97, 2K, and 2003,
running on Windows 95, W98, W2000, WMe, WXP, and Vista. But on a
laptop running W7, it failed. Any idea why? And, BTW, actually
manually pressing the F4 key does work properly.
Pete Brady

Reply With Quote
  #2  
Old   
Clif McIrvin
 
Posts: n/a

Default Re: SendKeys fails in Windows 7, Any alternatives in Access? - 10-19-2011 , 11:54 AM






"Paul Brady" <ptbrady (AT) aol (DOT) com> wrote

Quote:
SendKeys causes a debugger interruption in Windows 7. I posted the
message below to Windows 7 group, and got sympathy, but no solutions
to the problem. Is there an Access command other than SendKeys{f4}
that will cause the drop-down list to appear? Thanks.
---------------------
The following command failed when used in Access 2003 running on
Windows 7:

SendKeys "{f4}" ' causes drop-down names list on hitting first key

It causes the debug window to open, which the user cannot deal with..
This command has worked for 12 years in Access 95, 97, 2K, and 2003,
running on Windows 95, W98, W2000, WMe, WXP, and Vista. But on a
laptop running W7, it failed. Any idea why? And, BTW, actually
manually pressing the F4 key does work properly.
Pete Brady


I can't get to Access now, so am unable to easily look this up.

One of the methods of the listbox/combobox control will open the
drop-down.

Over the years I've noticed that many of the regulars here strongly
discourage using sendkeys at all .... one reason is that you have no
control over focus; and ocassionally sendkeys will issue a command to
the wrong window.

--
Clif McIrvin

(clare reads his mail with moe, nomail feeds the bit bucket :-)

Reply With Quote
  #3  
Old   
Stuart McCall
 
Posts: n/a

Default Re: SendKeys fails in Windows 7, Any alternatives in Access? - 10-19-2011 , 12:27 PM



"Paul Brady" <ptbrady (AT) aol (DOT) com> wrote

Quote:
SendKeys causes a debugger interruption in Windows 7. I posted the
message below to Windows 7 group, and got sympathy, but no solutions
to the problem. Is there an Access command other than SendKeys{f4}
that will cause the drop-down list to appear? Thanks.
---------------------
The following command failed when used in Access 2003 running on
Windows 7:

SendKeys "{f4}" ' causes drop-down names list on hitting first key

It causes the debug window to open, which the user cannot deal with..
This command has worked for 12 years in Access 95, 97, 2K, and 2003,
running on Windows 95, W98, W2000, WMe, WXP, and Vista. But on a
laptop running W7, it failed. Any idea why? And, BTW, actually
manually pressing the F4 key does work properly.
Pete Brady
Me.MyCombo.DropDown

Reply With Quote
  #4  
Old   
Paul Brady
 
Posts: n/a

Default Re: SendKeys fails in Windows 7, Any alternatives in Access? - 10-19-2011 , 08:00 PM



On Wed, 19 Oct 2011 18:27:12 +0100, "Stuart McCall"
<smccall (AT) myunrealbox (DOT) com> wrote:

Quote:
Is there an Access command other than SendKeys{f4}
that will cause the drop-down list to appear? Thanks.
---------------------

Me.MyCombo.DropDown
Stuart, thank you. That nearly worked, but it was then OK when I
changed it to Combo36.DropDown (Combo36 is the name of the control.)
However, it worked on my ancient computer with A2K and WindowsMe.
It will be a few weeks before I can try it with Windows*7, but I think
it will work. Thanks again.

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.