Solved

Listbox change problem

Posted on 2002-06-05
7
246 Views
Last Modified: 2010-05-02
Hello,
I have the following problem.
In one of my VB forms i have a list box with values from db. But the list box is just enough to show a single entry. But it contains the key field so when it changes i have to change values for other fields in the screen.
But when the user clicks on either the up or down buttons of the listbox the value that is displayed in the listbox changes but it will not be selected and hence all the other field values remain the same.
Since there is no change event how should i take care of this issue?
0
Comment
Question by:ravi_raj123
7 Comments
 
LVL 22

Expert Comment

by:Mohammed Nasman
ID: 7057179
try to put ur code in the Click even instead of Change event of the List Box
0
 
LVL 5

Expert Comment

by:rpai
ID: 7057182
Please close all your open questions:-
Questions Asked 13
Last 10 Grades Given A A B B A B B  
Question Grading Record 7 Answers Graded / 7 Answers Received
0
 
LVL 3

Expert Comment

by:SirNick
ID: 7057183
Hi

Have you tried the scroll event?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 4

Expert Comment

by:Steve Sirica
ID: 7057284
Why not just use a combo box instead of a list box?  It sounds like it would be a better fit here.  You use a list box when you want to show a few items at once...you're only showing one.  At least a combo box would show the selected one, once you scroll the selected item out of view in a list box it can get confusing to the user.

Just a thought..
Steve
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7057477
I am with SSirica's comment.
0
 

Accepted Solution

by:
HobbitHouse earned 50 total points
ID: 7057900
check out the topindex property.  you can always query what element is displayed in a one-line display list box.
0
 
LVL 4

Author Comment

by:ravi_raj123
ID: 7058617
Thanks HobbitHouse for your answer.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…

914 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now