Windows 7 Forums


Reply
Thread Tools

SendKeys fails in Windows 7

 
 
Paul Brady
Guest
Posts: n/a
Thanked:
 
      10-18-2011
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
pressing the F4 key does work properly.
Pete Brady

 
Reply With Quote
 
 
 
 
Peter Jason
Guest
Posts: n/a
Thanked:
 
      10-18-2011
On Mon, 17 Oct 2011 21:05:37 -0400, Paul Brady <>
wrote:

>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
>pressing the F4 key does work properly.
> Pete Brady



I have Access2010 and I find the F4 key refuses to drop-down a combo
box when this is located in a subform. No one can help me!
 
Reply With Quote
 
Char Jackson
Guest
Posts: n/a
Thanked:
 
      10-18-2011
On Mon, 17 Oct 2011 21:05:37 -0400, Paul Brady <>
wrote:

>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
>pressing the F4 key does work properly.


Some folks say what you're running into is a UAC limitation. You can
test that theory by temporarily dropping UAC down and getting it out
of the way. You may or may not want to just leave it that way.
Alternatively, consider replacing the SendKeys command with something
else that is functionally equivalent without the security issue.
Unfortunately, I don't know what that would be.

--

Char Jackson
 
Reply With Quote
 
DanS
Guest
Posts: n/a
Thanked:
 
      10-18-2011
Paul Brady <> wrote in
news::

> 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 pressing the F4
> key does work properly.
> Pete Brady
>


SendKeys hasn't worked properly since Vista. (In VB6 anyway.)

Maybe you can adapt this VB6 work-around to VBA....

http://vb.mvps.org/samples/SendInput/
 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Install Windows 7 davehc Software 0 08-16-2010 02:50 PM
Windows 7 Annoyances Nibiru2012 General Discussion 6 03-17-2010 06:17 PM
Clean Install Windows 7 with Upgrade Media Nibiru2012 Installation, Setup and Updates 0 12-22-2009 07:03 PM
Clean Install Windows 7 with Upgrade Media Nibiru2012 Installation, Setup and Updates 2 12-04-2009 06:30 PM
Important Issues in This Release Candidate of Windows 7 Ian News 0 05-05-2009 03:25 PM


All times are GMT +1. The time now is 07:26 AM.
W7Forums is an independent website and is not affiliated with Microsoft Corporation.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33