|
When the text1 parameter changes, combo1 cannot be updated when it is pulled down again, and the data displayed is the original query data
Private Sub Combo1_DropDown()
rs.CursorLocation = adUseClient
With rs
sql = "select name from temp1 where ID='"&Text1&"'"
rs.Open sql, cn
If .RecordCount> 0 Then
.MoveFirst
Combo1.Clear
While Not .EOF
Combo1.AddItem .Fields("name")
.MoveNext
Wend
End If
End With
Set rs = Nothing
End Sub
How to change |
|