Solved

DBCombo selecting

Posted on 1998-07-30
2
173 Views
Last Modified: 2010-05-03
I have am using a DBCombo box and I would like to restrict the user to only selecting items from the list. However, if I set the lock property to true the you can't select from the list. And if I set the lock property to false you can type anything you want in the text box.
How can I do this?
0
Comment
Question by:chaos_59
2 Comments
 

Accepted Solution

by:
mskannan earned 50 total points
ID: 1467333
Hi chaos_59,
In the keypress event of DBCombo just type in
keyascii = 0
They can't enter any thing.Also ensure that you are checking for Tab/Enter keys.
I think it should solve your problem.

mskannan

0
 

Expert Comment

by:hansbos
ID: 1467334
Chaos_59,

Try setting the property Style of the DBComboBox to
2 - dbcDropdownList.

Hans
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

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…
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…
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…

809 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