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

Groupong by Date

Status
Not open for further replies.

davidmo

Technical User
Apr 8, 2003
97
US
In one report I want to group items that were created prior to 4/1/2003 and group items that were created after 4/1/2003. Not sure how.
 
Create a formula that returns "Before" or "After" depending on the date and group on that formula.

Cheers,
- Ido

CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Here's an example of the formula.

Insert->Field Object->Right Click Formulas->New:

If {TableDateField} < cdate(year(currentdate),4,1) then
&quot;Prior to 4/1&quot;
else
&quot;4/1 or after&quot;

Insert a group by this formula.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top