pokeymonsc
Technical User
I want to load a combobox on my form from a table in another sqlserver database. I can code to open the connection, load the recordset and debug.print it. But I was told in my 'Accesseveloping Enterprise Applications' that I can't use a recordset as a source (to a form, table, query) and my rowsource for my combobox needs a source to fill the combobox during runtime. I tried to use
Me.cbxautofctitle.RowSource = "Select emp_id, first_name + ' ' + last_name from dbo_EmpNames where last_name is not null order by last_name" but the sql can't directly access the table w/o going through a recordset.
I thought of filling a temp table with data from the recordset and have the rowsource query use that table, but I haven't found a way of getting the data out of the recordset into the table. Does anyone have a way of getting the data out of the record set into a temp table OR a better method of doing what I'm trying to do? Or going direct: how do I reference 'Me.cbxautofctitle.RowSource =' directly to the data in the recordset?
Thanks in advance
Me.cbxautofctitle.RowSource = "Select emp_id, first_name + ' ' + last_name from dbo_EmpNames where last_name is not null order by last_name" but the sql can't directly access the table w/o going through a recordset.
I thought of filling a temp table with data from the recordset and have the rowsource query use that table, but I haven't found a way of getting the data out of the recordset into the table. Does anyone have a way of getting the data out of the record set into a temp table OR a better method of doing what I'm trying to do? Or going direct: how do I reference 'Me.cbxautofctitle.RowSource =' directly to the data in the recordset?
Thanks in advance