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

grouping birthdates

Status
Not open for further replies.

3dthies

Programmer
Mar 12, 2003
77
DE
I have all the birthdates of my clients and I want a report in which I can group the birthdates to day and month but not the year. How can I achieve that?

Thanks
 
create a formula

//@BMonthDay
totext({table.birthdate},"MM/dd"

Group on @BMonthDay
 
Make a formula with this:
Code:
global numbervar DOB := 
day({DATE_OF_BIRTH});
global numbervar MOB := 
month({DATE_OF_BIRTH});

totext(MOB,0) &"/" & totext(DOB,0)

then group by it.
 
assuming that {yourbirthdate.field} is a date field...
@month formula:
month{yourbirthdate.field}

@day formula:
day{{yourbirthdate.field}

Group 1 @month formula
Group 2 @day formula

Also it would be nice in the future if you state your Version on Crystl, what db you're connecting to, etc.

DataDog [pc2]
If God wanted us to count in Hexadecimal, then why did he only give us A fingers?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top