hey,
the time is not important just the date doesn't matter if it was 12 am or 3 pm
what i have now with current formula
shared numbervar tel := 0;
IF {ArtikelsLinked.TD} < currentdate - 14 THEN tel := tel + 1;
IF {ArtikelsLinked.COP} < currentdate - 14 THEN tel := tel + 1;
IF {ArtikelsLinked.IM} < currentdate - 14 THEN tel := tel + 1;
IF {ArtikelsLinked.BAS} < currentdate - 14 THEN tel := tel + 1;
if for example we say that currentdate is 7/2 so -14 it's 18/6
TD COP IM BAS tel
null 26/2 4/2 null 0 it should be 2 but gives 0 becouse TD is null
25/6 22/4 null 8/5 1 it should be 2 but again 1 becouse of im is checked before bas
9/4 null 6/4 null 1 in stead of 2
the times when a date is not there he stops counting and he doesn't do the other formula's any more
i would like to get the formula to do the test for every field what ever the result was from the previous line
do i need to split it up in 4 formula's or is there a way to do it in 1 formula ?
tnx for the responces already