Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Displaying the correct item in a combo box when loading a form.

Posted on 2004-09-02
2
217 Views
Last Modified: 2010-05-02
Hi all.

I am loading a form with a combo box on it.  
In the combo box, item 0 = M, 1 = A, 2 = A, 3 = B, 4 = O.
When I load the form I collect a number from a database which tells me what the combo box is set as.
The question is how do I get the combo box to have item 3 already selected?
At the moment instead of displaying B in the combo it displays the number 3.

Any help much appreciated.

Cheers,
Shivermetimbers.
0
Comment
Question by:shivermetimbers
2 Comments
 
LVL 7

Accepted Solution

by:
_agj_ earned 50 total points
ID: 11962001
u can set the ListIndex property of the combo to 3.
0
 

Author Comment

by:shivermetimbers
ID: 11962024
Ha! Excellent - I knew it would be an easy one, just couldnt quite get there myself!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

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

837 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