The first combo box lists our branches and the second lists our customers
within each branch. Here's the code for both:
Private Sub cboFind_AfterUpdate()
Me.RecordsetClone.FindFirst "[COMPANY_NAME] = '" & Me.cboFind & "'"
Me.CUSTOMER_NUMBER.Value = Me.cboFind.Column(1)
If Not Me.RecordsetClone.NoMatch Then
Me.Bookmark = Me.RecordsetClone.Bookmark
End If
End Sub
Private Sub cboFirst_AfterUpdate()
cboFind.Requery
cboFind.SetFocus
End Sub
Row Source for Branch:
SELECT Tbl_Customers_03.BRCH_LOCATION_CODE FROM Tbl_Customers_03 GROUP BY
Tbl_Customers_03.BRCH_LOCATION_CODE;
Rose Source for Customer:
SELECT Tbl_Customers.CL_NAME, Tbl_Customers.CL_ID,
Tbl_Customers.BRCH_LOCATION_CODE
FROM Tbl_Customers
WHERE (((Tbl_Customers.BRCH_LOCATION_CODE)=[Forms]![Frm_Quotes]![cboFirst]))
ORDER BY Tbl_Customers.CL_NAME;
These combo boxes work perfectly when the subform is opened on its own - but
they don't work at all when the main form is opened that contains the subform.
Thank you!!!
Rachel
What do these combo boxes do? Can you post the Row Sources and code if any?
If they refer to one another, do you use a Me. reference or a Forms!FormName!
[quoted text clipped - 8 lines]