Solved

combo box don't want to let them change value of text

Posted on 2000-05-18
6
134 Views
Last Modified: 2010-05-02
i have a combo box on my form. I have put in the list the value 1,2,3,4,5
I don't want them to be able to go on combo box and put in a value.
I just want them to choose one with the arrow button.
thanks!!!!!
0
Comment
Question by:jerbell
6 Comments
 
LVL 9

Expert Comment

by:GivenRandy
ID: 2821046
Set the Locked property to True.
0
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 5 total points
ID: 2821084
Use the Style property:
vbComboList
0
 
LVL 7

Expert Comment

by:Joe_Griffith
ID: 2821097
I think what you want is to set the style to "2 - Dropdown List".  This will allow the user to select one of the 5 option but not to enter anything else.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 9

Expert Comment

by:GivenRandy
ID: 2821119
I think you mean vbComboDropDownList, which is an alternative.
0
 
LVL 7

Expert Comment

by:Joe_Griffith
ID: 2821281
You should set the combo's style in the property list to "2 - Dropdown List".  The style is read only at runtime so you cannot set it in code.
0
 

Author Comment

by:jerbell
ID: 2821485
exactly what i wanted
Thanks !!!!!!!!!!!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

911 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

20 Experts available now in Live!

Get 1:1 Help Now