Solved

Combo box always showing last item

Posted on 2002-04-24
6
124 Views
Last Modified: 2010-05-18
I have combo box with the  following properties:
sorted = True
style= 2-Dropdown List

I fill some number series in this combo,
e.g AC01010001,SAC01010002,SAC01010003,SAC01010004........


Now when i click first or any item from this combo it always take me to last one.
i.e if i select SAC01010001, it take me to SAC01010004

What can be the reason?
0
Comment
Question by:sachin_raorane
6 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 100 total points
ID: 6965339
There must be some code in the click or change event handler, otherwise there is no reason.
Please verify (eventually post) your relevant code.

CHeers
0
 
LVL 5

Author Comment

by:sachin_raorane
ID: 6965383
thanx for ur suggestion.

I got the answer.

I was filling some text box on selection of the number from combo.
In one of the text box i was using SendKey "{END}"
this was causing the problem.
0
 
LVL 5

Author Comment

by:sachin_raorane
ID: 6965384
thanx for ur suggestion.

I got the answer.

I was filling some text box on selection of the number from combo.
In one of the text box i was using SendKey "{END}"
this was causing the problem.
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 5

Author Comment

by:sachin_raorane
ID: 6965385
thanx for ur suggestion.

I got the answer.

I was filling some text box on selection of the number from combo.
In one of the text box i was using SendKey "{END}"
this was causing the problem.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7660864
sachin_raorane, an EE Moderator will handle this for you.
Moderator, my recommended disposition is:

    Accept angelIII's comment(s) as an answer.

DanRollins -- EE database cleanup volunteer
0
 

Expert Comment

by:SpideyMod
ID: 7755426
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…

910 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

23 Experts available now in Live!

Get 1:1 Help Now