I have two combo boxes. One is dependant on the other using this code.
If Me.cboRegion.Value = "Owner" Then
Me.cboSubRegion.RowSource = "OwnerDealer"
Me.cboSubRegion.ListIndex = 1
End IF
Me.cboRegion.Value = "Owner 2"
Me.cboBank.RowSource = "OwnerDealer2"
Me.cboBank.ListIndex = 1
End If
My main problem is that I have over 1,000 Owners which means based on my current code I would have to write out over 1,000 rows of data which is not very practical. To make it worse every time I download an update the Owner and Dealer relationship changes as well. Is ther any way to manuver this better?
If Me.cboRegion.Value = "Owner" Then
Me.cboSubRegion.RowSource = "OwnerDealer"
Me.cboSubRegion.ListIndex = 1
End IF
Me.cboRegion.Value = "Owner 2"
Me.cboBank.RowSource = "OwnerDealer2"
Me.cboBank.ListIndex = 1
End If
My main problem is that I have over 1,000 Owners which means based on my current code I would have to write out over 1,000 rows of data which is not very practical. To make it worse every time I download an update the Owner and Dealer relationship changes as well. Is ther any way to manuver this better?