How do you populate a combobox from a certain column and that only has "fan_" somewhere in the text?

Set rs = Myconn.Execute("SELECT DBName FROM DBRecords WHERE DBName LIKE '*" & "fan_" & "*'")
    If Not rs.EOF Then
        cboLoadDB.AddItem rs.GetString
    End If
rs.Close
Set rs = Nothing
Takamine334Asked:
Who is Participating?
 
Patrick MatthewsConnect With a Mentor Commented:
Set rs = Myconn.Execute("SELECT DBName FROM DBRecords WHERE DBName LIKE '*" & "fan_" & "*'")
Do Until rs.EOF
    cboLoadDB.AddItem rs!DBName
    rs.MoveNext
Loop
rs.Close
Set rs = Nothing
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.