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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

date ranges within date ranges

Status
Not open for further replies.

JamesFlowers

Programmer
Mar 23, 2001
97
GB
I have a range of dates in a database with {startdate} - {enddate} and I want to find out any of the intervening dates within this range within greater date range that is passed by a CR eg 10/7/2004 - 12/12/2004.

Is this possible?

TIA

James


James Flowers
Crystal Consultant
 
Try:

If {table.startdate} >= minimum({?MyDateRangeParm}
and
{table.enddate} <= maximum({?MyDateRangeParm} then
"yep"
else
"nope"

Generally supplying:

Crystal version
Database used
Example data
Expected output

conveys requirements best.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top