Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15162

Fill combobox in one shot only

$
0
0
Possible to fill a combobox with this array value?
Code:

Set RS = New ADODB.Recordset
    RS.CursorLocation = adUseClient
    SQL = "SELECT * FROM COMUNI UNION SELECT * FROM STATI"
    RS.Open Source:=SQL, _
            ActiveConnection:=CON, _
            CursorType:=adOpenForwardOnly, _
            LockType:=adLockReadOnly
    RS.Sort = ("PROVINCIA, DESCRIZIONE")

    RS.MoveFirst
    Erase strDBRows()
    strDBRows = RS.GetRows()
    RS.Close
    Set RS = Nothing
   
    Me.CCOMNASC.List = strDBRows<<<<


Viewing all articles
Browse latest Browse all 15162

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>