473,387 Members | 3,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

conditionals

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?
Nov 13 '05 #1
3 1425
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
Nov 13 '05 #2
"Salad" <oi*@vinegar.com> wrote in message
news:XT*****************@newsread1.news.pas.earthl ink.net...

First, the word is cull, not call.


I checked in Dictionary.Com, and found that "cull" has 2 meanings,
1. To select or gather
2. To remove rejected members or parts

It looks to me as if the OP wants to select specific data, rather than
remove it.
So in this case, using "cull" would be pretty ambiguous.

I think the most commonly used technical term here would be "select".
Beyond that, I don't see that "cull" is any more desirable than "call".

Just my opinion
- Turtle
Nov 13 '05 #3
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?
Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: FHuang | last post by:
Ok, I'm having some trouble with conditionals, for some reason PHP is screwing them up. First off, here is the code: <?php $username = "fred"; $userdata = "./$username.txt"; $fp =...
15
by: Joshua Ginsberg | last post by:
Is there any plan to include inline conditionals in Python? For example: def isNegative(x): return x < 0 ? True : False Thanks! -jag --
1
by: Paul Dale | last post by:
Hi All, I know that several of you will probably want to reply "you should write a parser", and I may. For that matter any tips on theory in that direction would be appreciated. However, if...
4
by: Leon Lambert | last post by:
I would appreciate it if someone could help me understand NaN handling with respect to conditionals in IL code. I am playing with a small IL interpreter and having a little problem with it....
11
by: .Net Sports | last post by:
I need to convert some C# ?Conditionals over to vb.net (most likely in vb.net using If..Then statements), but the C#2VBNETconverter by KamalPatel isn't converting them: string PurchaseType =...
5
by: Hul Tytus | last post by:
comp.lang.c c programs & shell conditionals How is a unix shell script made to respond to the value returned by a program compiled from c code? The shell script below is my current effort,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.