baffled combobox.text setting

  • Thread starter Thread starter Hussein Abuthuraya[MSFT]
  • Start date Start date
H

Hussein Abuthuraya[MSFT]

Karl,

Have you tried the following code?

ComboBox1.SelectedIndex = -1
ComboBox1.Text = ""

I know that you have tried the first line and the second line but may be not together. Let me know!


Thanks,
Hussein Abuthuraya
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.

Are you secure? For information about the Microsoft Strategic Technology Protection Program and to order your FREE Security Tool Kit, please visit
http://www.microsoft.com/security.
 
Hi
I'm trying to set the text value of a combobox when I navigate to a new
record using

me.cboCombobox.text=""

however it will not reset,
I can step through the code and see the line execute, and check it in the
immediate window, it still retains the value of the last record it was on,
if I type

cboCombobox.text="" in the immediate window and then check it it still
retains it's value
On the other hand if I place a button on the form with cboCombobox.text=""
in it's click event, navigate to a new record and press the text value it
resets, anybody know why this is.


Thanks in advance

ps I have also tried
me.cboCombobox.selectedIndex=0
me.cboCombobox.selectedIndex= -1
in fact almost all selected properties, seem to have no effect
Karl
 
Back
Top