dbTalk Databases Forums  

Hiding Data in a Report Record Field Based on Age

comp.database.ms-access comp.database.ms-access


Discuss Hiding Data in a Report Record Field Based on Age in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
tabbott
 
Posts: n/a

Default Hiding Data in a Report Record Field Based on Age - 04-25-2004 , 07:51 PM






I am creating a roster of members in an organization. In the report I
want to show the ages of those members 20 years or younger, but not
the ages of the older members. I have created a query that includes
the ages of all members. How do I suppress the printing of ages in
the report of those members 21 years or older?

Thanks

Reply With Quote
  #2  
Old   
Ray
 
Posts: n/a

Default Re: Hiding Data in a Report Record Field Based on Age - 04-26-2004 , 05:54 AM






abbott10 (AT) comcast (DOT) net (tabbott) wrote in message news:<2a7214fc.0404251651.7d90b024 (AT) posting (DOT) google.com>...
Quote:
I am creating a roster of members in an organization. In the report I
want to show the ages of those members 20 years or younger, but not
the ages of the older members. I have created a query that includes
the ages of all members. How do I suppress the printing of ages in
the report of those members 21 years or older?

Thanks
Hello,

Perhaps you could add one more column to your query.

Example:

Under21Years: IIf([txtAgeField]<21,[txtAgeField],null)

What this is saying: If the data in txtAgeField is less
than 21, then display the age, else don't show anything.

Also, you might want to look up the IIF() function to
get a better understanding of it if you don't already.

Regards,

Ray


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.