D
dave h
Hi,
I have this code:
Dim mySQL As String
Dim myCombo As Control
Set myCombo = Forms("person2").Controls("cboNameSearch")
mySQL = "Select Name, personID FROM person ORDER By Name"
myCombo.RowSource = mySQL
When the form is first brought up, there is no problem if the user clicks on
the dropdown arrow and selects from the list. After that, if a person keys
into the textbox part, the combo box also operates in the normal fashion.
However, when the form is first brought to life and the user starts typing
in the text box part, the combo box does not respond in any way - it just
sits there. For example, if "Ajax" is in the list and the user types some
or all of that word, nothing happens. Hit enter and still nothing happens.
Once the dropdown list part has been exercised at least one time, then
typing in letter "A" immediately shows "Ajax" in the text box.
It seems like I should be doing something to initialize the combo box - any
suggestions?
Thanks, Dave H.
I have this code:
Dim mySQL As String
Dim myCombo As Control
Set myCombo = Forms("person2").Controls("cboNameSearch")
mySQL = "Select Name, personID FROM person ORDER By Name"
myCombo.RowSource = mySQL
When the form is first brought up, there is no problem if the user clicks on
the dropdown arrow and selects from the list. After that, if a person keys
into the textbox part, the combo box also operates in the normal fashion.
However, when the form is first brought to life and the user starts typing
in the text box part, the combo box does not respond in any way - it just
sits there. For example, if "Ajax" is in the list and the user types some
or all of that word, nothing happens. Hit enter and still nothing happens.
Once the dropdown list part has been exercised at least one time, then
typing in letter "A" immediately shows "Ajax" in the text box.
It seems like I should be doing something to initialize the combo box - any
suggestions?
Thanks, Dave H.