Access 2007-2019
Access 2000-2003
Access Seminars
TechHelp Support
Tips & Tricks
Access Forum
Course Index
Topic Glossary
Insider Circle
Home   Courses   Seminars   Templates   TechHelp   Fast Tips   Forums   Help   Contact   Join   Order   Logon  
Home > TechHelp > Directory > Access > CapsLockOn < Help System | Suppress >
Caps Lock On Off
By Richard Rost   Richard Rost on Twitter Richard Rost on LinkedIn Email Richard Rost   12 months ago

Turn Caps Lock, Num Lock, and Scroll Lock ON / OFF

 S  M  L  XL  FS  Join Now

Learn how to toggle Caps Lock, Num Lock, and Scroll Lock using Access VBA. We'll see how to turn them ON and OFF, and to read their current state so that you can either set them to ON, or set them to OFF.

Nancy from Swanton, Maryland (a Gold Member) asks: How can I use SendKeys to turn Scroll Lock ON. Right now, it only toggles between ON and OFF. I need to just set it ON when I click a button.


I will show you how to turn these keys on and off WITHOUT using SendKeys!

Silver Members and up get access to view Extended Cut videos, when available. Gold Members can download the database template from class plus get access to the Code Vault. If you signed up on YouTube you have to contact me so I can set up your account here on my web site. If you're not a member, Join Today!


Original Question Thread:
Intro to VBA:
Get Caps Lock:
MS SendKeys Reference:
Set Caps Lock:

Learn More

FREE Access Beginner Level 1
Access Level 2 for $1.00

Free Templates

TechHelp Free Templates
Blank Template
Contact Management
Order Entry & Invoicing
More Access Templates


Mailing List - Get Emails When New Videos Released!
Consulting - Need Help with Your Database?


Please feel free to post your questions or comments below or submit them via the TechHelp page.


64 Bit Error Upload Images   Link  
Jeffrey Rainey 
3 months ago
Would really like to get this to work but got the following message:

"The code in this project must be updated for use on 64-bit systems. Please review and update Declare statements and then mark them with the PtrSafe attribute."
Kevin Robertson
3 months ago
See this video: 64-bit Access
Richard Rost
3 months ago
I'm pretty sure the code is 64-bit safe.
Add a Reply

Start a NEW Conversation
Only students may post right now. Click here for more information on how you can set up an account. If you are a student, please LOG ON first.

You may want to read these articles from the 599CD News:

1/22/2022Next Appointment
1/18/2022Access B2 Upgrade
1/17/2022Access Beginner 2 Links
1/17/2022Access Beginner 2
1/17/2022New Record on Top
1/13/2022Missing References
1/13/2022Access Beginner 1 Links
1/11/2022Access Fast Tips
1/11/2022System Defaults

Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
My Account
My Courses
Lost Password
Student Databases
Change Email
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Customer Support
Web Site Tour
Consulting Services
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Video Tutorials
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Terms of Sale
Contact Info
Support Policy
Email Richard
Mailing Address
Phone Number
Fax Number
Course Survey
Blog RSS Feed    Twitter

YouTube Channel    LinkedIn
Keywords: TechHelp Access CapsLock, Caps Lock, NumLock, Num Lock, ScrollLock, Scroll Lock, SendKeys, GetKeyState, user32, GetCapsLock, GetNumLock, GetScrollLock, keybd_event, ToggleCapsLock, ToggleNumLock, ToggleScrollLock, Toggle  PermaLink