SendKeys {Home} Accesss 2003 Vista

jaydwest

JayW
Local time
Today, 15:38
Joined
Apr 22, 2003
Messages
340
I hate Vista.

Well I have some code the uses the following line of code

SendKeys "{HOME}", True

I use it to move the curror to the start of the currently active control.

This line of code has worked from Acess 2.0 - Access 2003. However, I made the mistake to installing Vista, and now this code gives me the error message

Permission Denied.

I have checked for permissions and all there is OK.

Does anyone know of any known issues with using the SendKeys with VISTA. Did they finally obsolete it?

Thanks for your help
 
I believe this has to do with the User Account Control in Vista, if you turn off / disable this feature I've heard that SendKeys will work once again. This has the obvious downside of making your system more vulnerable to attacks, you may want to look at upgrading the SendKeys command to the SendInput API, I think that would bypass the issue, although I don't have a Vista system to test it on.
 
SendKeys has been problematic for years,why not use SelStart or the Behavior Entering Field on the Options sheet?
 

Users who are viewing this thread

Back
Top Bottom