Question : combo box - basic question

Hi EE,

Happy New Year!

I get confused with populated a combo box to a default value.

1) what is the diff. bet  .value   and .text
2) in the example below, would like to default combo box to ""
    am building the combo box with the sql below

         SELECT  ""  FROM TBL_STUDENTS  
         UNION
         SELECT DISTINCT College
                       FROM TBL_STUDENTS
                       ORDER BY 1;

3) in form's open event, this statement is not populating the combo box, just stays blank
                  Me!cboHdrFilterCollege = ""

         i tried these ideas, and they did not work
                 Me!cboHdrFilterCollege.text  = "" - got error msg
                 Me!cboHdrFilterCollege.value = ""   - shows blank
                 Me!cboHdrFilterCollege.coumn(0) = ""   - got error msg



4) combo box is one column

Thx for your help and advice, tx, sandra


Answer : combo box - basic question



1) .Value is the value *after* the combo box has been updated, ie a selection is made.  .Text is the current value at the moment ... and would mainly apply if you are typing characters in the combo box.

2) Try this:

    Me.cboHdrFilterCollege.SetFocus            '  **** do this first
    Me!cboHdrFilterCollege.text  = ""

mx
Random Solutions  
 
programming4us programming4us