I have a form where a project is selected in a comboBox and I need a second combobox called "business" to be populated relative to the project. In the project combobox afterupdate area I have code that finds the index number for the "business" combobox and am trying to automate the selection. I do need the "business" combobox to be available when no project applies so I have to keep them separate. The "business" combobox index value is assigned to a variable "lngItmData". Then I have the line:
Me!cboBU.ListIndex = lngItmDta
I get the error "You've used the ListIndex Property incorrectly". After closing the error message the combobox is populated and seems to have worked anyway. Many examples that I have seen, while researching, use this same syntax.
Thank you in advance for your help.
Me!cboBU.ListIndex = lngItmDta
I get the error "You've used the ListIndex Property incorrectly". After closing the error message the combobox is populated and seems to have worked anyway. Many examples that I have seen, while researching, use this same syntax.
Thank you in advance for your help.