Solved

DBCombo box

Posted on 1998-07-30
5
289 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
ID: 1467325
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
ID: 1467326
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
ID: 1467327
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
ID: 1467328
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
ID: 1467329
Chaos_59,

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

Hans
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

685 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