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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

listindex

Status
Not open for further replies.

Kreiss

Programmer
Oct 8, 2003
48
US
I am getting a "You've used the ListIndex property incorrectly." error. I'm wanting to send the combobox to zero. Here is my code

cboAction.listindex = 0

Does anyone have any ideas why I would be getting this error. When I check against the listindex everything works fine. For example when I say.....If cboAction.listindex = 0 then................ it works.

Thanks in advance,
Kacy
 
Don't use listindex in your statement

cboAction.listindex = 0

Use:

cboAction = 0
 
Thanks Mgolla......When using this though my combobox shows 0 in it instead of "Inquire" which is listindex 0. Should I say something like....

cboaction = 0
cboaction.value = "Inquire"

Please let me know.

Thanks,
Kacy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top