Solved

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

Posted on 2000-05-18
6
133 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
Comment Utility
Set the Locked property to True.
0
 
LVL 142

Accepted Solution

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

Expert Comment

by:Joe_Griffith
Comment Utility
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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 9

Expert Comment

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

Expert Comment

by:Joe_Griffith
Comment Utility
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
Comment Utility
exactly what i wanted
Thanks !!!!!!!!!!!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
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…

771 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

11 Experts available now in Live!

Get 1:1 Help Now