Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formula to determine if date falls within two dates?

Status
Not open for further replies.

stcholly

Technical User
May 17, 2006
25
US
I'm trying to write a formula (V.10) that says:

if {amount} <field> in [x,y,z] and
if {accounting date} <field> is between {firstdayofyear} <formula> and {cutoff date} <formula>

then {amount} <field>

I'm struggling with the second part of the formula that determines if it falls within the date range....(I'm relatively new to Crystal)
 
Hi,
Assuming your formulas do what you want then try:

Code:
if (
{amount}  in [x,y,z]
 and
{accounting date}  IN {@firstdayofyear} TO
{@cutoff date}  
)
then
{Amount}




[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top