<< Click to Display Table of Contents >> Navigation: Available Functions > NumYrsADonor |
Number Of Years A Donor
Syntax
NumYrsADonor( <nStartingYear> )
Purpose
To retrieve the number of years a donor has been donating. Note that this is the total number of years in which any giving occurred, not necessarily the number of consecutive years in which giving occurred.
Parameters
<nStartingYear> is an optional starting year. It defaults to all years.
Returns
A count of the number of years in which giving occurred.
Usage
On DonorQuest reports and data exports, NumYrsADonor() can be used to retrieve a count of the number of years a donor has had any giving at all. You may optionally specify a starting year. For example, to determine the number of years in which a donor had giving starting in 2001, you would use NumYrsADonor() like this:
NumYrsADonor( 2001 )