Set Insert Key to Overwrite

  • Thread starter sneuf via AccessMonster.com
  • Start date
S

sneuf via AccessMonster.com

How do I set Overwrite on in VBA so that it is like pressing the Insert key
on the keyboard??
Thanks,
Steve
 
S

Scott McDaniel

How do I set Overwrite on in VBA so that it is like pressing the Insert key
on the keyboard??

Here's a link to a vbnet article concerning setting keystates. It's VB-centric, but should port easily to Access:
http://vbnet.mvps.org/index.html?code/system/capslock.htm

This deals with the CapsLock key, but you could add this in the declarations:

VK_INSERT = &H2D

and then use VK_INSERT anywhere you see VK_CAPITAL
Thanks,
Steve

Scott McDaniel
scott@takemeout_infotrakker.com
www.infotrakker.com
 

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