Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form ComboBox ListIndex Error

Status
Not open for further replies.

kentover

MIS
Aug 21, 2002
41
US
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.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top