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

How To Average a Date Field 1

Status
Not open for further replies.

keeno

MIS
Feb 24, 2006
33
GB
Hello

I have a date field in my report which shows the amount of time in hours taken to receive payment.

When i try and do a summary fo the field there is no option to obtain the Average.

Does anyone know of any way to get the Average on what is essentially a date field? Is this possible at all?

Really apopreciate anyone's help on this

Cheers

David
 
I don't follow what you mean by
I have a date field in my report which shows the amount of time in hours taken to receive payment.

If you have two dates, you can find the difference in hours using
Code:
DateDiff ("h", {date1},  {date2})
Once you have this field you can get an average from it.

It helps to give your Crystal version - 8, 8.5, 9, 10, 11 or whatever. Methods sometimes change between versions, and higher versions have extra options.

[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