listindex

kbreiss

Registered User.
Local time
Today, 21:10
Joined
Oct 1, 2002
Messages
228
I'm trying to set my list box to a particular action. In my list box I have "Inquire", "Change", "Delete". I would like to set it to "Inquire" so I would assume like in VB it would be........

cboAction.listindex = 0

But I'm getting a "You've used the listindex property incorrectly" error. Any suggestions in what I'm doing wrong or how this could be accomplished?

Thanks in advance,
Kacy
________
Honda c70
 
Last edited:
kbreiss said:
I'm trying to set my list box to a particular action. In my list box I have "Inquire", "Change", "Delete". I would like to set it to "Inquire" so I would assume like in VB it would be........

cboAction.listindex = 0

But I'm getting a "You've used the listindex property incorrectly" error. Any suggestions in what I'm doing wrong or how this could be accomplished?

Thanks in advance,
Kacy

If these are the actual values of a Value List then simply:


Code:
Me.cboAction = "Inquire"

will suffice.

If you want the first option of any list or combo to be selected then:

Code:
Me.cboAction = Me.cboAction.ItemData(0)
 

Users who are viewing this thread

Back
Top Bottom