Page 2 sur 2

Publié:
12 Avr 2011 à 16:44
par gadcho
j'ai mis ma formule dans l'agent mais ça ne me calcule toujours rien

Publié:
12 Avr 2011 à 18:27
par roubech
un agent planifié ?
sur tous les docs ?
LS ou formule ?
la formule que j'ai indiquée ?

Publié:
13 Avr 2011 à 08:44
par gadcho
agent planifié sur tous les docs avec comme formule : @If(DateNaisE_1 !="";@Year(@Today) - @Year(DateNaisE_1);Null)

Publié:
13 Avr 2011 à 09:02
par Michael DELIQUE
salut
faudrais peut-être affecté ta fomule à un champ
genre
- Code : Tout sélectionner
Field monchamp := @If(DateNaisE_1 !="";@Year(@Today) - @Year(DateNaisE_1);Null)

Publié:
13 Avr 2011 à 09:25
par gadcho
J'ai mis ça dans l'agent :
FIELD dn := @If(DateNaisE_2 !="";@Year(@Today) - @Year(DateNaisE_2);Null);
@SetField(AgeE_2;dn);
ça ne fonctionne toujours pas

Publié:
13 Avr 2011 à 09:46
par Michael DELIQUE
essais ça
- Code : Tout sélectionner
FIELD AgeE_2:= AgeE ;_2
@SetField("AgeE_2;@If(DateNaisE_2 !="";@Year(@Today) - @Year(DateNaisE_2);Null));

Publié:
13 Avr 2011 à 10:01
par gadcho
En fait j'ai mis :
@SetField("AgeE_1";@If(DateNaisE_1 !="";@Year(@Today) - @Year(DateNaisE_1);Null));
et ça fonctionne, il manquait les "" pour le nom du champ.
merci.