PC Review


Reply
Thread Tools Rate Thread

Dependent records

 
 
=?Utf-8?B?UGF0?=
Guest
Posts: n/a
 
      30th Jan 2006
I have a table of employee dependents and want to be able to identify those
who are 21 or older and not in school as these dependents are no longer
eligible for coverage under our plan. Is there an efficient way of setting
up my table to pull this information half yearly or yearly? I have heard of
a status field but am unsure how to accurately set this up.
--

 
Reply With Quote
 
 
 
 
=?Utf-8?B?SmVycnkgV2hpdHRsZQ==?=
Guest
Posts: n/a
 
      30th Jan 2006
Your table needs two things: (1) a date of birth field and (2) a field that
shows if they are in school or not. If you have those two fields, it would be
simple.
--
Jerry Whittle
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"Pat" wrote:

> I have a table of employee dependents and want to be able to identify those
> who are 21 or older and not in school as these dependents are no longer
> eligible for coverage under our plan. Is there an efficient way of setting
> up my table to pull this information half yearly or yearly? I have heard of
> a status field but am unsure how to accurately set this up.
> --
>

 
Reply With Quote
 
=?Utf-8?B?VGVkTWk=?=
Guest
Posts: n/a
 
      30th Jan 2006
To do this, the following 2 fields must be in your table of dependents:
Date of birth
Some way of indicating whether this person is or is not in school. This
could be a yes/no field.
Assuming that these two fields are named BirthDate and IsInSchool (of type
Yes/No), the query to select ineligibles would be:
SELECT * FROM tblDependents WHERE DateDiff("yyyy, BirthDate", Date()) >= 21
AND IsInSchool=0
To select eligible dependents:
SELECT * FROM tblDependents WHERE DateDiff("yyyy, BirthDate", Date()) < 21
OR IsInSchool<>0
--
Ted

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Advanced Filter Unique Records Only - treats dependent cells inconsistently Bill Benson Microsoft Excel Discussion 2 17th Jun 2009 04:20 AM
RE: Combo to show records dependent upon another combo =?Utf-8?B?S2VuIFNoZXJpZGFu?= Microsoft Access 1 16th Dec 2006 06:43 PM
Re: Combo to show records dependent upon another combo JK Microsoft Access 0 16th Dec 2006 12:18 AM
Nslookup query for NS records returns all of the NS records, but not all of the Host records Bob Microsoft Windows 2000 DNS 2 7th Nov 2004 04:42 AM
Adding records to dependent tables Damien Microsoft Access Forms 0 22nd Sep 2004 10:23 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:26 PM.