Problème GetItemValue d'un champ date

Forum destiné aux questions sur le développement : Formules, LotusScript, Java ...

Messagepar zouzi » 04 Jan 2011 à 16:42

copie écran colonne ci dessous
Avatar de l’utilisateur
zouzi
Roi des posts
Roi des posts
 
Message(s) : 555
Inscrit(e) le : 24 Déc 2004 à 10:22
Localisation : Vendée

Messagepar Michael DELIQUE » 04 Jan 2011 à 16:46

il faut que tu remplace

Code : Tout sélectionner
 If CRDoc Is Nothing Then
         Set v = dbParten.GetView("CRDoublons")
         If Not (v Is Nothing) Then
            Call v.Refresh
            Key(0) = note.GetItemValue("PostedDate")(0)
            Key(1) = note.GetItemValue("From")(0)
            Key(2) = note.GetItemValue("Subject")(0)
            Set CRDoc = v.GetDocumentByKey(key)
            Set v = Nothing
         End If
      End If



par un truc du genre

Code : Tout sélectionner
 If CRDoc Is Nothing Then
         Set v = dbParten.GetView("CRDoublons")
         If Not (v Is Nothing) Then
            Call v.Refresh
            dim keyString as String
            keyString = format(note.GetItemValue("PostedDate")(0),"dd/mm/yyyy hh:nn:ss")+note.GetItemValue("From")(0)+note.GetItemValue("Subject")(0)
            Set CRDoc = v.GetDocumentByKey(keyString)
            Set v = Nothing
         End If
      End If
Cordialement

Michael (SMS-Phobique)
----------------------------
"La théorie, c'est quand on sait tout et que rien ne fonctionne. La pratique, c'est quand tout fonctionne et que personne ne sait pourquoi."
Albert EINSTEIN
Avatar de l’utilisateur
Michael DELIQUE
Administrateur
Administrateur
 
Message(s) : 12183
Inscrit(e) le : 16 Déc 2004 à 10:36
Localisation : Paris/Cergy

Messagepar zouzi » 04 Jan 2011 à 17:17

Le truc du genre

ça marche nikel !!! Merci à tous
Avatar de l’utilisateur
zouzi
Roi des posts
Roi des posts
 
Message(s) : 555
Inscrit(e) le : 24 Déc 2004 à 10:22
Localisation : Vendée

Précédent

Retour vers Développement