On selecting a certain value in a combo box, I would like to re-populate the combo box with a different set of values (different SQL record source) and make it automatically drop down.
It all works fine except for droppign down again. I believe it is to do with the fact that the combo box was already dropped down.
I have tried the following, any ofther ideas?
With ctlCombo
.RowSource = ""
ctlCombo = Null
.Requery
.RowSource = strSQL
.ListRows = lngRecordCount
.ColumnCount = 2
.ColumnWidths = "0;5000"
.Visible = True
.Requery
.SetFocus
.Dropdown
End With
It all works fine except for droppign down again. I believe it is to do with the fact that the combo box was already dropped down.
I have tried the following, any ofther ideas?
With ctlCombo
.RowSource = ""
ctlCombo = Null
.Requery
.RowSource = strSQL
.ListRows = lngRecordCount
.ColumnCount = 2
.ColumnWidths = "0;5000"
.Visible = True
.Requery
.SetFocus
.Dropdown
End With