I want to get data from sql server into my combo box. These are the few steps that I did and I want to know how to insert data to my combo box?
Thank you
Code:
Private Sub Form_Load()
Call fxSETConnection(ServerType2)
Dim rsreportSw As String
Dim LnOD As ADODB.Recordset
'rsreportSw = "SELECT cFty FROM dbo.FRI_MASTER_LineLoading group by cFty order by cFty"
Set LnOD = New ADODB.Recordset
LnOD.CursorLocation = adUseClient
LnOD.Open "SELECT cFty FROM dbo.FRI_MASTER_LineLoading group by cFty order by cFty", cn, adOpenStatic, adLockReadOnly
End Sub
Thank you