NumLock (1 Viewer)

irade92

Registered User.
Local time
Today, 16:32
Joined
Dec 26, 2010
Messages
229
Hi
How to make Numlock to be always on in Access
 

Isaac

Lifelong Learner
Local time
Today, 07:32
Joined
Mar 14, 2017
Messages
8,887
Be aware that some actions, including SendKeys, can turn numlock off - even if the keys being sent are NOT to turn numlock off. Some api calls can mess with num lock too. I have a simple vba code in an Excel workbook that maximizes excel when it opens and sets the focus - and it turns off my num lock for reasons I cannot determine. I hesitate to offer the "undocumented/unpredictable" answer, but I do feel that num lock turning off sorta falls in this category sometimes.
 

DickyP

Member
Local time
Today, 15:32
Joined
Apr 2, 2024
Messages
64
There is some old code (link removed) but you will probably have to find update versions of the API declarations for 64bit.
Don't worry about it being 32 bit code: it still works. And given how just how much 32 bit code is still used by the Access 64 bit application it will be for some time yet! Usual warnings about need to use PtrSafe in declarations, of course.
 

cheekybuddha

AWF VIP
Local time
Today, 15:32
Joined
Jul 21, 2014
Messages
2,328
Don't worry about it being 32 bit code: it still works. And given how just how much 32 bit code is still used by the Access 64 bit application it will be for some time yet! Usual warnings about need to use PtrSafe in declarations, of course.
I wasn't worried.

It was the declarations that I was talking about.
 

DickyP

Member
Local time
Today, 15:32
Joined
Apr 2, 2024
Messages
64
I wasn't worried.

It was the declarations that I was talking about.

See what you mean - of course information about the 32 Bit API isn't easily available anymore, unless. like me, you still have a copy of Visual Basic programmer's Guide to the Win32 API by Dan Appleman. ISBN 978 0672315909.

Given me the idea for a new thread on using books rather than just relying on on-line helps.
 

Users who are viewing this thread

Top Bottom