Private Sub cboCustomertype_AfterUpdate()
Dim myCustomer As String
myCustomer = "SELECT * FROM Asset_all WHERE (((Asset_all.Status)=[forms]![U_customer search by combobox].[Form]![cboCustomerType]));"
Forms![U_customer search by combobox]![tbl_customer_subform1].[Form].RecordSource = myCustomer
Me.CboDepname = Null
End Sub
Private Sub CboDepname_AfterUpdate()
Dim myDepname As String
myDepname = "SELECT * FROM Asset_all WHERE (((Asset_all.Depname)=[forms]![U_customer search by combobox].[Form]![cbodepname]));"
Forms![U_customer search by combobox]![tbl_customer_subform1].[Form].RecordSource = myDepname
Me.cboCustomerType = Null
End Sub
เรียบร้อยค่ะ 5555