Dec 14, 2002 #1 gwendon Technical User Apr 7, 2002 23 US I have a column that provides me age based on the following Age: Int(DateDiff("d",[DateOfBirth],Date())/365.25) What I need is an AGE RANGE, for example people between age 50 and 60
I have a column that provides me age based on the following Age: Int(DateDiff("d",[DateOfBirth],Date())/365.25) What I need is an AGE RANGE, for example people between age 50 and 60
Dec 14, 2002 #2 PaulBricker Programmer Sep 25, 2002 3,554 US Put this in a column of your query. AgeRange:IIf(Age < 20,"Less than 20",IIf(Age < 30, "20 - 30",IIf(Age < 40, "30 - 40",IIf(Age < 50, "40 - 50", IIf(Age < 60, "50 - 60","Greater than 60")))) You can adjust the output values to whatever suits you. Paul Upvote 0 Downvote
Put this in a column of your query. AgeRange:IIf(Age < 20,"Less than 20",IIf(Age < 30, "20 - 30",IIf(Age < 40, "30 - 40",IIf(Age < 50, "40 - 50", IIf(Age < 60, "50 - 60","Greater than 60")))) You can adjust the output values to whatever suits you. Paul
Dec 14, 2002 #3 MichaelRed Programmer Dec 22, 1999 8,410 US look up the partition function in HELP, and 'help youself' to some understanding. MichaelRed m.red@att.net Searching for employment in all the wrong places Upvote 0 Downvote
look up the partition function in HELP, and 'help youself' to some understanding. MichaelRed m.red@att.net Searching for employment in all the wrong places
Dec 14, 2002 Thread starter #4 gwendon Technical User Apr 7, 2002 23 US Paul I wish to thank you for your help. I ended up with => AgeRange20: IIf([Age]>19,IIf([Age]<30,[Age])) And it works very well thanks to you. Upvote 0 Downvote
Paul I wish to thank you for your help. I ended up with => AgeRange20: IIf([Age]>19,IIf([Age]<30,[Age])) And it works very well thanks to you.