begin process at 2012 02 11 02:02:43
  Trouver un code source :
 
dans
 

1 commentaire(s) de tchicken sur des sources sur tout CodeS-SourceS

Déposé sur Afficher tous les nom d'une base de donnée

Bonjour, après 2 jours de recherche internet, c'est microsoft qui m'a donné la solution :

Sub UpdRChevauxCotes(Numero As Integer, cote11h As Single, coteDef As Single)

Dim MyCle1 As Variant
Dim MyCle2 As Variant
Dim MyCle3 As Variant
Dim MyBool As Boolean
Dim mystr As String

    
    On Error GoTo adoerror:
    
    MyCle1 = Reunion
    MyCle2 = NumCourse
    MyCle3 = Numero
    
    Set RChevaux = New ADODB.Recordset
    
    With RChevaux
        'Select the index used in the recordset.
        .Index = "PrimaryKey"

        'Set the location of the cursor service.
        .CursorLocation = adUseServer

        'Open the recordset.
        .Open "Chevaux", cn, adOpenKeyset, adLockOptimistic, adCmdTableDirect

        'Find the customer order where OrderID = 10255 and ProductID = 16.
        .Seek Array(MyCle1, MyCle2, MyCle3), adSeekFirstEQ

        'If a match is found, print the quantity of the customer order.
        If Not RChevaux.EOF Then
            RChevaux!cote11h = CSng(cote11h)
            RChevaux!coteDef = CSng(coteDef)
            RChevaux.Update
        End If
    End With
    
    RChevaux.Close
    Set RChevaux = Nothing
    
    Exit Sub
    
adoerror:

    MsgBox ("Erreur de mise à jour de la cote du cheval " & Numero & " de la course " & NumCourse)
    Call EcritSurEcran("Erreur de mise à jour de la cote du cheval " & Numero & " de la course " & NumCourse & vbCrLf)
    
    RChevaux.Close
    Set RChevaux = Nothing
    
    FlagErr = True
    
End Sub
Posté le : 07/12/2005 19:41:24

1


Nos sponsors


Sondage...

CalendriCode

Février 2012
LMMJVSD
  12345
6789101112
13141516171819
20212223242526
272829    

Consulter la suite du CalendriCode

Photothèque

 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 0,094 sec (4)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales