Can't find the correct syntax to make it work. Please help.
Private Sub cboBrand_AfterUpdate()
Me.cboProductID.RowSource = "SELECT ProductID, ProductName, ProductNumber FROM tblProduct WHERE BrandID = " & Me.cboBrand ORDER BY ProductName
End Sub
Private Sub cboBrand_AfterUpdate()
Me.cboProductID.RowSource = "SELECT ProductID, ProductName, ProductNumber FROM tblProduct WHERE BrandID = " & Me.cboBrand ORDER BY ProductName
End Sub