On my main form I have a Product drop down. Once a product is select, the Module combo box is to be popluated with modules related to that product.
The combo box populates correctly, but if I click on any module, it automatically selects the first item in the box.
Example:
My Product is CA, the modules are Assessment, Capacity, Implementation, Planning, Evaluation, REports, Other.
If I select CA, then under module I select Implementation, the module combobox popluates with "assessment "
Here is my code for the Product on change event
Can anyone help me with this problem?
Thank you
The combo box populates correctly, but if I click on any module, it automatically selects the first item in the box.
Example:
My Product is CA, the modules are Assessment, Capacity, Implementation, Planning, Evaluation, REports, Other.
If I select CA, then under module I select Implementation, the module combobox popluates with "assessment "
Here is my code for the Product on change event
Code:
Private Sub Product_Change()
Dim t As String
t = Me.Product.Value
cboModule.SetFocus
cboModule.RowSource = "Select [product id], Module FROM Module where [product id] = " & t & ";"
Product.SetFocus
End Sub
Thank you
Comment