Solved

ComboBox Fustration!

Posted on 2001-06-23
3
161 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 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
passing parameter in sql procedure 9 65
Run code from text file in vb 1 73
VB6 ListBox Question 4 48
fso.FolderExists("\\server\HiddenFolder$") 4 78
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
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…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

860 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