Thanks for the response. Could you look at my form_load and give me advice. I keep getting a syntax error and i think i am missing something obvious
Dim conn As New ADODB.Connection
Dim rs As New Recordset
Set conn = New ADODB.Connection
Set rs = New Recordset
'On Error GoTo Err
conn.Open "DRIVER={MySQL ODBC 3.51 Driver};SERVER=l7a.info;Port=3306;DATABASE=****;UI D=******;PWD=****;OPTION=16427"
rs.Open "Select * from `storloc`", conn
rs.MoveNext
'heres the code i added
Do Until rs.EOF = True
Combo1.AddItem rs.Fields("city").Value
rs.MoveNext
'end of new code
If rs.EOF = True Then
GoTo Done
End If
Loop
Done:
rs.Close
conn.Close
Use the SELECT DISTINCT col_name FROM ..etc...in your query.
Ronald :cool: