Solved

ComboBox Fustration!

Posted on 2001-06-23
3
163 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
[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
 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 50 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Excel Automation VBA 19 115
Fastest way to find and count same items VB6 16 62
VB6 calling COM DLL written in Visual Studio 2003 6 55
Help with Classic ASP - Parameterizing Query 16 63
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

739 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