I found a code given by Al Venosa, that gives the good result.

NewDay = DateNum() != Ref(DateNum(),-1);// returns 30 and 29

I don't understand why the other formula is wrong on a specific day !

reinsley a écrit :
>
> Looks like a bug. I will appreciate comments.
>
> Best regards
>
> reinsley a écrit :
> >
> > Hi,
> >
> > The following formula used to work well.
> >
> > But today, january 30, it's wrong.
> >
> > NewDay = Day()!= Ref(Day(), -1);
> >
> > **********
> >
> > _TRACE("NewDay = "+NewDay ); gives 0
> > _TRACE("Day = "+Day() ); gives 30
> > _TRACE("RefDay = "+Ref(Day(), -1) ); gives 30
> >
> > **********
> >
> > Why Ref(Day(), -1) does not give 29 ???
> >
> > What could be the issue ?
> >
> > Thank you for your help.
> >
> > Best regards
> >
> >
>
>  


Reply via email to