I can do this all day long using Linked Tables - But I want to populate a combobox by pulling the data directly from SSMS.
Below is one of about 20 different configurations - with a few different variations
Code:
Private Sub CmboOpnCls_AfterUpdate()
Dim StrSQL As String
Dim conn As ADODB.Connection
Dim cmd As ADODB.Command
Dim Rs As ADODB.Recordset
Set conn = New ADODB.Connection
conn.ConnectionString = strConnection
conn.Open
If Me.CmboOpnCls.Value = "Open" Then
StrSQL = "SELECT ATCCallDescription, ATCCategory " & _
"FROM Tri.ATCCallResults " & _
"WHERE ATCCategory = '" & Me!CmboOpnCls & "'"
End If
Debug.Print StrSQL
Set Rs = conn.Execute(StrSQL)
Me.CmboClsdRsn = Rs.Fields("ATCCallDescription")
'Me.CmboClsdRsn.RowSource = Rs.Fields("ATCCallDescription")
'Me.CmboClsdRsn.RowSource = StrSQL
'Me.CmboClsdRsn.RowSourceType = StrSQL
End If
End Sub
Shown within the code above are just a few examples of the Me.CmboClsdRsn... code attempts
The top one currently being used pulls only the first record
I've also tried to tie the Rs and the RowSource directly to the SELECT Statement
My various attempts have pulled from nothing, to just the first record of the Rs, to an assortment of errors
According to Google - I have to do this in a loop??? Using .Items.Add - which I can't get to work either
Lastly - when I throw the DeBug.Print into SSMS - Of course it pulls the correct dataset
Help 
Thanks All