I have a form with a subform. The form loads with a client based on user selection. When the subform opens I want some data based on the id of the company in the parent form. I can't bind it to the form because it is bound to a table wher I want the live data to go.
I am using the following code:
I don't get an error but the combobx is blank.
What am I doing wrong?
Thanks
I am using the following code:
Code:
rs.Open "SELECT Customers.Customers_ID, Customers.Company_ID, Customers.C_FName, Customers.C_LName FROM customers WHERE Customers.Company_ID=" & Me!tmpCompany_ID.Value, Me.getConnection, adOpenStatic
While Not rs.EOF
strContacts = strContacts & rs("c_fname") & " " & rs("c_lname") & "; "
rs.MoveNext
Wend
Forms("company")("futureactions")!cbContact.RowSource = Left(strContacts, Len(strContacts) - 2)
rs.Close
Set rs = Nothing
DoCmd.OpenForm "futureactions", , , , , acDialog
I don't get an error but the combobx is blank.
What am I doing wrong?
Thanks