Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set Combo Box Value
Message
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01358259
Message ID:
01359440
Vues:
22
Assuming you find the key try:
cboSalespersons.SelectedIndex = iIndexNum
>I am passing in the key of the item in the combo box I want to show:
>
>
>If iSalespersonKey <> 0 Then
>
>    Dim iIndexNum As Integer
>    Dim iItemKey As Integer
>    
>    For iIndexNum = 0 To cboSalespersons.ListCount - 1
>    
>        iItemKey =Me!cboSalespersons.Column(iIndexNum, 0)
>    
>        If iItemKey = iSalespersonKey Then
>        
>            'Me!cboSalespersons.ListIndex = iIndexNum
>        
>        End If
>
>    Next
>    
>End If
>
>
>I cannot get this to work. I have tried numerous ways. I'm not sure the syntax is correct. Can someone point me in the right direction?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform