vbsmohamed
Messages postés45Date d'inscriptiondimanche 19 mars 2006StatutMembreDernière intervention25 juin 2014
-
27 avril 2007 à 22:06
WALID900_6
Messages postés3Date d'inscriptionmardi 13 décembre 2005StatutMembreDernière intervention13 mai 2007
-
1 mai 2007 à 22:15
bonsoir ,
j'ai fait une application en vb6 et crystal report10 .
voici mon code
c1.ReportFileName = App.Path & "\etat1.rpt"
c1.SelectionFormula = "{fournisseur.representant}='" & Combo1 & "'" & " and " & "{vente.date_vente}>= date(" & Year(text17.Text) & "," & Month(text17.Text) & "," & Day(text17.Text) & ") "
c1.Formulas(1) = "date_vente='" & text17.Text & "'"
c1.Action = 1
c1.WindowState = crptMaximized
et on execute mon application j'ai l'erreur suivant (impossible de charger l'etat)
pouvez vous m'aider s'il vous plais
chaibat05
Messages postés1883Date d'inscriptionsamedi 1 avril 2006StatutMembreDernière intervention20 novembre 20072 27 avril 2007 à 22:37
Bonsoir,
Expliques nous un peu ceci :
date(" & Year(text17.Text) & "," & Month(text17.Text) & "," & Day(text17.Text) & ") "
ce que je sais moi c' est que Text17.Text n' étant pas une date, on ne peux donc pas avoir
ni Year ni Month ni Day...!
Combien même ça serait une date (#Text17.Text#), pourquoi alors le reconvertir en date ?