How do you get something to show in drop downlist combo box before selected?

Answered How do you get something to show in drop downlist combo box before selected?

  • Friday, June 01, 2012 7:29 PM
     
     

    Hello Everyone,

    I have another one of those questions that I am sure is very easy but I have not been able to find an answer.

    I have a combo box (drop down list) the rowsource is an array. All works well with it. I would like the first item to show in the box before the user clicks the down arrow, I know it is possible because everyone else seems to do it......but I have not figured out how.

    I realize that I can make the first item in the array say "Select Item"..but how do I get it to show in the box?

    Thanks again


    Dennis Downey

All Replies

  • Friday, June 01, 2012 8:00 PM
    Moderator
     
     Answered
    thisform.myCombo.ListIndex = 1

    For every expert, there is an equal and opposite expert. - Becker's Law


    My blog

  • Sunday, June 03, 2012 5:28 PM
     
     

    Thanks Naomi,

    I knew it had to be simple. I have read and looked and was not able to find that answer anywhere. It must be one of those things that everyone already knows. When I used 2.0 thru 2.6 I never used a form. Everything was programs and @ say statements. This is really like starting all over again.

    This forum has been a lifesaver.

    Why would they not allow this listindex property to be set at design time?


    Dennis Downey


    • Edited by TransApp Sunday, June 03, 2012 5:29 PM
    •