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:
01359341
Vues:
37
If iSalespersonKey <> 0 Then ' are you sure "iSalespersonkey" is the name of the field or is iSalespersonskey in plural? check your DB

    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
        ' I noticed you have this as comment, you notice that already?
            'Me!cboSalespersons.ListIndex = iIndexNum
            Me!cboSalespersons.ListIndex = iIndexNum
        'try to add an event here is this condition does not apply
        else
          DoEvents  
        End If

    Next
    
End If
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform