Salad <oi*@vinegar.com> wrote in message news:<XT*****************@newsread1.news.pas.earth link.net>...
steven wrote: Is it possible to combine conditionals to call out data?
I have a list of records that include a date. I can call out all dates
after the date after tomorrow:
IIf(Date()+1)<[date],...,...
And I can call dates before next week:
IIf([date]< Date()+7,...,...
But I'd like to isolate those that fall between the day after tomorrow
and next week. I was thinking that this would work, but it doesn't:
IIf((Date()+1)<[date]<(Date()+7),...,...
Any hints?
First, the word is cull, not call.
If you are talking about this in a query
Select * From Table
Where DateField Between Date() + 1 And Date() + 7
You could have done
DateField > Date() + 1 And DateField < Date() + 7
Actually, I was trying to use this in a report. I want the expression
to produce the day of the week starting from the day after tomorrow
within the next week. Right now, the expression I'm using is very
cumbersome:
IIf([Date]= Date(),"Today","") &
IIf([Date]=(Date()+1),"Tomorrow","") &
IIf([Date]=(Date()+2),Format([Date],"ddd")," ")&
IIf([Date]=(Date()+3),Format([Date],"ddd")," ") &
etc., etc.
I was hoping to collapse the last few lines into
IIf((Date()+2>[Date]>(Date()+7),Format([Date],"ddd")," ")
I don't know whether something like this is possible. Maybe there's
something that can be added to the expression to enable this?