Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Age catagory in query
Message
From
19/10/1997 02:22:38
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00055318
Message ID:
00055341
Views:
28
You can use the report designer. Define a group on the following expression:

INT( AGE(table.BirthDate) / 5)

Of course, you need to write the AGE function before.
Also, set the order on BirthDate.

You don't need a loop to do it. DIMENSION is only for array definitions. Please read the Help on it. You cannot print from an array.

Vlad

>I use a health care app. with vfp as a engine. I have a report to do that wants to count current members by
>age catagory by sex.
>age
><1
>1-4 years
>5-9 years
>10-14years
>
>etc
>etc
>in 5yr increments
>till 80
>then I use field such as demograph.date of birth member.lastname member.member #
>80+ years
>
>Can I do this with a loop or dimensions? Any help would be greatly appreciated.
>
>
>Joe McNamara vfp novice?
Previous
Reply
Map
View

Click here to load this message in the networking platform