?
Solved

ComboBox Fustration!

Posted on 2001-06-23
3
Medium Priority
?
170 Views
Last Modified: 2010-05-02
Hi All!
Please tell me how to:
I have a combobox that needs to fill other fields upon selection by user.  This works fine if the user uses a mouse and clicks on a selection and I have Load_OtherFields in the click event.  But I have to also assume the user will be using the keyboard.  The keypreview is set to true using "SendKeys" - {TAB} so the user may use the Enter key to "tab".  This cannot be changed.  Where do I put Load_OtherFields so that when user scrolls the cbo box with the down key, a call isn't being made to the database each time? I realize the click event is invoked each time the down key is pressed.  I believe a flag is in order but don't know how to code it.  I've been putting this in the LostFocus Event of the cbo but what if I want the cbo to retain focus?  Any help will be appreciated!
0
Comment
Question by:alicelknight
  • 2
3 Comments
 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 200 total points
ID: 6222261
Do a search here, at EE. If i remember well, there is an old question regarding your problem.
Cheers.
0
 

Author Comment

by:alicelknight
ID: 6222388

Hey Richie, Thanks!  And for anyone else, here's the link:
http://www.experts-exchange.com/jsp/qShow.jsp?qid=20069835
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6223218
You are welcome anytime!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

840 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