Sendkeys Statement

K

katz

Hello all!
I relized with acc2003 when i use the statement "SendKeys "{Esc}", True" the
systmem locks up for a second or two and the NumLock key turns of and on
again.
Is there a way to avoid this?

Thank in advance,
abe
 
M

missinglinq via AccessMonster.com

Sure, don't use "SendKeys "{Esc}", True"!

Sorry, but this is a well known bug with SendKeys, and not using it really is
the only way to avoid the problem! Exactly what are you trying to accomplish?
Perhaps someone here can offer an alternative!

Linq
 
J

John W. Vinson

Hello all!
I relized with acc2003 when i use the statement "SendKeys "{Esc}", True" the
systmem locks up for a second or two and the NumLock key turns of and on
again.
Is there a way to avoid this?

Thank in advance,
abe

Sendkeys is *NEVER* necessary and (IME) it's almost always buggy. The NumLock
is just the most prominent of its problems.

To cancel an addition use the Undo method. You don't say where or under what
circumstances you're running this code so I can't be specific; but to cancel
the entry in a control you can use

Me.controlname.Undo

or to cancel the addition to the entire form (what you do manually by hitting
Esc twice in succession) you can use Me.Undo.

John W. Vinson [MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top