Solved

DBCombo box

Posted on 1998-07-30
5
276 Views
Last Modified: 2010-05-03
I have a DBCombo box set up with an Access database using Jet. According to the help on the DBCombo it says that there is some search capability by entering 1 or more characters in the text part of the combo. According to the help, with the basic matching if you press a character multiple times it should increment thru each record with that character, and with the extended matching as you type it will bring up the first record that matches the string you typed.
I can't get ANY searching to happen. When I type in the text box it doesn't position on the list, it doesn't bring up a matching record. It's just like typing in a normal text box. Did I miss a property setting or what???
0
Comment
Question by:chaos_59
  • 3
  • 2
5 Comments
 

Expert Comment

by:hansbos
Comment Utility
Chaos_59,

Try setting the property Style of the DBComboBox to
2 - dbcDropdownList and the propert MatchEntry to 1 - dblExtendedMatching.

Hans

0
 
LVL 1

Author Comment

by:chaos_59
Comment Utility
I just tried this and it doesn't work. With the control defined the user can't enter anything in the text box part of the control, which is fine, but it still doesn't retrieve or even position the list at the character that was entered. No positioning or selection is occurring.
0
 

Expert Comment

by:hansbos
Comment Utility
Chaos_59,

The selection mechanisme is only activated when you click on the combo box button, when you see all the list items. Does this work in your program?

Hans
0
 
LVL 1

Author Comment

by:chaos_59
Comment Utility
I've tried every combination of the control I can think of. There is still no selection taking place. Do I need to have the database defined in a particular way? I currently have it defined as a table, using access and jet.

0
 

Accepted Solution

by:
hansbos earned 50 total points
Comment Utility
Chaos_59,

Using 'table' seems to make the difference. I was using 'dynaset'.

Hans
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

743 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

10 Experts available now in Live!

Get 1:1 Help Now