I am using Access 2000 with a connection to a SQL database which contains 600 records. I am trying to populate a combo box with just the Primary Key values from the SQL database. So far all that shows up is the first record, how do I display the other 599 ? I am using this code:
SQLb = "SELECT Coil FROM CoilSpec.dbo.coilspec"
Set CN = New ADODB.Connection: CN.Open "driver={SQL Server};" & _
"server=172.16.6.172;database=coilspec;uid=dtuttle;password=mpmadmin"
Set rs = CN.Execute(SQLb, , adCmdText)
[Forms]![frm_Start]![cmbWCoilNo] = rs.Fields("coil")
Thanks so much.
SQLb = "SELECT Coil FROM CoilSpec.dbo.coilspec"
Set CN = New ADODB.Connection: CN.Open "driver={SQL Server};" & _
"server=172.16.6.172;database=coilspec;uid=dtuttle;password=mpmadmin"
Set rs = CN.Execute(SQLb, , adCmdText)
[Forms]![frm_Start]![cmbWCoilNo] = rs.Fields("coil")
Thanks so much.