SELECT (EndDate >= [05/24/2005]) & (StartDate <= [05/24/2005])
I am using this formula and started out with [Today], it keeps changing it to today’s date, but does not update daily. Any suggestions?
SELECT (EndDate >= [05/24/2005]) & (StartDate <= [05/24/2005])
I am using this formula and started out with [Today], it keeps changing it to today’s date, but does not update daily. Any suggestions?
Subject: Using @ Today
Write a Lotusscript agent to change the view’s selection formula daily. The view will be accurate only for someone on the same side of the date line. Do not use @Today, @Tomorrow, @Now etc.
Subject: RE: Using @ Today
Thanks Thomas. I will give that a try. I have been thrown into the desinger role and am trying to figure things out on my own. IT apparently is too busy to help me though they refer people to me to have databases created. I am not too knowledgeable when it comes to new stuff, just the things I have already figured out and can replicate. I will see if my agent actually runs tomorrow. I have never done one.
Subject: Using @ Today
Marlene and Stan, Thank you for your input. I am learning! I will give this a try.
Laura
Subject: Using @ Today
Sorry, I meant it will put today’s date in there if I create it today, but tomorrow it will still have today’s date. It does not update daily. My original post was a bit confusing.
Subject: Using @ Today
Laura,
Where are you putting this? Is it in a view selection formula??
Mike
Subject: RE: Using @ Today
Mike,Yes, it is in a view selection formula. When the user pulls up the view, I want it to show only the entries where today falls in the date range. I have a start date and an end date for newspaper deliveries and I want the deliery man to be able to pull up todays deliveries. (For a hotel)
I entered the formula yesterday using [Today] and the formula inserted yesterday’s date. It does not update daily however.
Subject: RE: Using @ Today
Hello Laura,
If you enter a date like [today], you are entering a literal date (and using a shortcut to do it).
Try this selection formula:
TodayDate := @TextToTime(“Today”);
SELECT (EndDate >= TodayDate) & (StartDate <= TodayDate)
This WILL update every day, because it is a formula and not a literal value.
By the way, I use “@TextToTime(“Today”)” instead of simply “@Today” (which works, too) to prevent the view refresh indicator from displaying continuously.
@Success!
Subject: RE: Using @ Today
@TextToTime(“Today”) will not update by itself. Unlike @Today (which Notes recognizes as a “hot” value), @TextToTime(“Today”) will only evaluate when the document is indexed into the view. Documents will not “age out” of the view, the way they do with real time-based selection, unless either the documents are “touched” or the view index is discarded.