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

Distinct Count for Dates with Times 1

Status
Not open for further replies.

pbardotz

Technical User
Oct 9, 2005
4
US
I have a report where I want to count distinct dates. However the database has the time associated with the date. The distinct count takes into consideration the time as well. So for one date, I am getting three as the distinct count because the there are three different times for that date. Is there a way I can have CRW 8.5 just count the date and not the times?

I have tried formating the date to the shortest possible format but the distinct count still includes the time factor.

Thanks.
 
Do a formula, Date({your.datetime}) or even Totext({your.datetime}, "yyyyMMdd"). Do your 'distinct count' on the formula.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top