Solved

DBCombo box

Posted on 1998-07-30
5
288 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

Suggested Solutions

Title # Comments Views Activity
Excel VBA combine two working workbooks 8 60
Excel - Save a copy of work book 13 88
vb6 connector to SQL Server 2 37
how to Classify of email (pdf attachments) 7 45
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…

792 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