combobox simple

Posted on 2006-05-05
Last Modified: 2010-05-01
what is the command to add entrys to a combo box? i cant remeber and everytime i google it, it keeps telling me how to dynamicly populate the information. i just want to manualy type all of the entrys that will be used in the code. simple.
Question by:Justin Malone
    LVL 27

    Assisted Solution

    Hi squallkill99,
    In Design mode, go to the properties of your combobox
    In the List property, enter the values. Use Ctrl-Enter to move to the next line

    LVL 17

    Accepted Solution

    Combo1.AddItem "OptionName"

    also you can specify index for ordering

    Combo1.AddItem "OptionName" 1

    Combo1.ListCount gives number of options

    Combo1.Text gives the selected value

    Combo1.RemoveItem 3 'Removes the 4th item in the list

    LVL 4

    Author Comment

    by:Justin Malone
    perfict. i guess i didnt specify that i was looking for code but since both work ill double the point value for the question and split points thx alot it works like a charm.
    LVL 17

    Expert Comment

    your welcome

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
    Introduction While answering a recent question ( 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 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…

    794 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

    17 Experts available now in Live!

    Get 1:1 Help Now