Hi Hassan,

One way to determine the age range would be to use the date diff to 
calculate the age - for example:

    Dim Age     As Integer
    Age = DateDiff("yyyy", txtDOB, Date)

Where the txtDOB would be the text box that contains the person's 
date of birth. Then I would think you could use an if then or case 
statement to filter the results depending on the age. 

For example (I better understand the if statements):

    If age < 16 OR age >25 Then
        "Filter Results to remove record"
    End If

Not totally sure how to filter the results that so will leave it to 
you - or someone else here - to help with that part. Which is 
probably the only part you're really wondering about anyway...

Good Luck!

Dylan

--- In [email protected], "Hassan" <[EMAIL PROTECTED]> 
wrote:
>
> Hello All,
> I have designed a membership database with various functions. 
> Currently I am working with reports in which I ran across an issue 
> that requires expert advice.
> 
> I have members of all ages in my database, and I need to 
categorize 
> the ones in the age range of 16-25 years. How can I single out 
only 
> the members within this age criteria so there name will show up in 
my
> report??
> 
> I want my report to show only the members in the age category 16-
25, 
> so how exactly do I restrict the report to do that?
> 
> Thanks alot
> 
> here is the link to my database here so you guys can look at it and
> tell me how to proceed. please try to understand i am new at this 
and
> trying very hard to learn it.
> thanks alot
> http://www.megaupload.com/?d=RMG98PV9
>







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income homes are not online. Make a difference this holiday season!
http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/q7folB/TM
--------------------------------------------------------------------~-> 


Please zip all files prior to uploading to Files section. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AccessDevelopers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to