13 messages in org.openoffice.fr.progRe: [prog] OOo1.1.4 - Probl...
FromSent OnAttachments
Ludovic CHEVALIERJan 5, 2005 2:23 am 
Ludovic CHEVALIERJan 5, 2005 8:54 am 
Bernard MarcellyJan 5, 2005 2:42 pm 
Francois GattoJan 5, 2005 9:45 pm 
Agnès SimonetJan 5, 2005 10:09 pm 
Ludovic CHEVALIERJan 6, 2005 1:47 am 
Ludovic CHEVALIERJan 6, 2005 1:49 am 
Ludovic CHEVALIERJan 6, 2005 1:58 am 
Laurent GodardJan 6, 2005 3:15 am 
Agnès SimonetJan 6, 2005 3:38 am 
Agnès SimonetJan 6, 2005 3:46 am 
Laurent GodardJan 6, 2005 3:57 am 
Agnès SimonetJan 6, 2005 4:24 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [prog] OOo1.1.4 - Problème de requêtes créées par macrosActions...
From:Agnès Simonet (agne@laposte.net)
Date:Jan 5, 2005 10:09:43 pm
List:org.openoffice.fr.prog

Bonjour,

Ludovic CHEVALIER a écrit :

Bon, en tatonnant, il me semble avoir éclaircit la question. En exemple, voici l'écriture de ma requête d'un point de vu macro: SQL2 = "Select Code_Projet, Niveau1, Niveau2, Niveau3, Quoi, ReelResultat From
Global where ((Qd3 >= {D '" & DateDebut & "' } AND Qd3 <= {D '" & DateFin & "'} AND
Rapport = 1 AND Code_Projet = '" & LaSelection & "')) ORDER BY Qd3 ASC" On pourrait croire que c'est du à la longueur et qu'une erreur se cache dans
cette ligne. Mais, comme je l'ai dit précédemment, une simple modification, en allant direct
dans la requête, juste de quoi pouvoir la réenregistrer sans la modifier, et tout
devient normal. A priori, le pb viendrait plutôt du champ "Code_Projet". Il s'agit d'un champ
texte. OOo a tendance à l'interpréter le contenu du champ comme une colonne. Existe t-il une écriture particulière pour différencier le nom d'un champ de son
contenu en basic???

Merci

A tout hasard, et peut-être complètement à côté de la plaque : Ne serait-ce pas parce que le _ (AltGr 8) est utilisé en basic pour indiquer que l'instruction se poursuit sur la ligne suivante ? Ex truc = Aaaaaa.Bbbbbbbb (ccc,_ ddd,eee,_ fff) Mais ce caractère doit être le dernier de la ligne.

Essaie en renommant ton champ Code_Projet en CodeProjet (dabs la bdd et dans la macro).

Agnès S.