[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Redirecting Key Events

Posted on 1998-10-19
3
Medium Priority
?
128 Views
Last Modified: 2010-04-30
How can I capture a key event and redirect it?  I want to capture the "+" vbKeyAdd and excute the <tab> instead, without changing the text property of the textbox.
0
Comment
Question by:whitej8
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Author Comment

by:whitej8
ID: 1440689
I do not want the "+" to appear in the textbox.
0
 
LVL 3

Accepted Solution

by:
TheAnswerMan earned 800 total points
ID: 1440690
sub TextBox_Keypress(keyascii as integer)

if keyascii = 43 then
  '+ Pressed
  sendkeys(vbtab)
end if
0
 
LVL 3

Expert Comment

by:TheAnswerMan
ID: 1440691
oops.. do this instead
sub TextBox_Keypress(keyascii as integer)

if keyascii = 43 then
  '+ Pressed
  keyascii = 0
  sendkeys(vbtab)
end if
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question