?
Solved

DBLookupListBox weird behavior

Posted on 1997-09-13
2
Medium Priority
?
240 Views
Last Modified: 2010-04-04
I have a DBLookupListBox on a form which is bound to a table.  It shows the 'name' field from that table.  To the right of that DBLookupListBox, I have text boxes that are bound to related fields from the same table as the  DBLookupListBox.  I have it so that by typing a string in
an unbound text box, it does a search on the 'name' field in the underlying table by using the Locate function.  The bound text boxes to the right of the DBLookupListBox update properly when a new record is found.  The DBLookupListBox shows the new record *but*, it doesn't move the highlighted bar to the current record.  It keeps the highlighted bar on
the previous record that it was on even though it is not on that record anymore in the table.  I have tried setting focus, refreshing, and updating the DBLookupListBox in many combinations.  Is this just a bug of sorts of the DBLookupListBox component?
0
Comment
Question by:tdiamond
[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 Comments
 
LVL 1

Accepted Solution

by:
anilms earned 100 total points
ID: 1344765
What you describe is not a bug at all. It is the way all DB Lookup List Boxes work - whether in Delphi or VB.

Actually, the DB Lookup ListBox is bound to the DataField of the table on which it is acting, not on the table from which it is getting the list of names.
0
 

Author Comment

by:tdiamond
ID: 1344766
Is there a way to manually set the highlighted bar at run time?
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses
Course of the Month10 days, 15 hours left to enroll

770 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