Solved

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

Posted on 2004-09-02
2
206 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

760 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