troubleshooting Question

Access 2010 Sendkeys Equivalent In VBA, Access 2010

Avatar of BFanguy
BFanguyFlag for United States of America asked on
Microsoft Access
6 Comments1 Solution3877 ViewsLast Modified:
I need VBA code that when a field on a form has focus to Send a F2.

Currently i am using the SendKey (which I know everytime a programmer uses the sendkey function a baby kitten is killed...), but there is a known bug in access 2010 (http://support.microsoft.com/kb/179987) that turns off the num locks and caps locks when using sendkeys.

This is what I am using currently:

If Me.Hardness <> "N/A" And Me.Hardness <> "" Then
SendKeys "{F2}", True
DoEvents
End If

Looking for an alternate method.

Thanks in advance.
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros