SteveGriff Posted January 6, 2002 Posted January 6, 2002 Hi peeps Quick question I have a date field. Basically I want a Calculation field to look at the date field and add up all dates that have 2002 in it. Therefore if there are 3 dates that contain ??/??/2002, the calculation field will add up to 3. Hope that's a good enough description Thanxs Steve Griff
LiveOak Posted January 7, 2002 Posted January 7, 2002 I'm going to assume that you REALLY don't want this to work only for 2002. First create a calculation field: CalcYear (calculation, number) = Year(DateField) Then a global field: gYear (global, number) Create a relationship matching gYear <--> CalcYear Then add up the related records: Count (calculation, number) = Count(YourNewRelationship::Year) You can really do this with two fields for just 2002, but it is good practice to change DATA and not STRUCTURE to alter the calculation for 2003. -bd
Recommended Posts
This topic is 8694 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now