G
Guest
Hello,
I have two related combo boxes named "cboIssuedTo" and "cboContact", both
pulling data from table "Contacts". As of now, I have only been able to
poplate cboContact with one item based on ContactID. I would like to
populate cboContact with multiple names, from the same company. My attempts
pretty much look like this:
Private Sub cboIssuedTo_AfterUpdate()
Me.cboContact.RowSource = "SELECT FirstName & "" "" & LastName FROM" & _
" Contacts WHERE CompanyName = " & Me.cboIssuedTo & _
" ORDER BY CompanyName"
Me.cboContact = Me.cboContact.ItemData(0)
The above does not put any data in cboContact. Any help wold be greatly
appreciated.
TIA
I have two related combo boxes named "cboIssuedTo" and "cboContact", both
pulling data from table "Contacts". As of now, I have only been able to
poplate cboContact with one item based on ContactID. I would like to
populate cboContact with multiple names, from the same company. My attempts
pretty much look like this:
Private Sub cboIssuedTo_AfterUpdate()
Me.cboContact.RowSource = "SELECT FirstName & "" "" & LastName FROM" & _
" Contacts WHERE CompanyName = " & Me.cboIssuedTo & _
" ORDER BY CompanyName"
Me.cboContact = Me.cboContact.ItemData(0)
The above does not put any data in cboContact. Any help wold be greatly
appreciated.
TIA