PC Review


Reply
Thread Tools Rate Thread

1 to many query - trying to identify missing records

 
 
Miskacee
Guest
Posts: n/a
 
      28th Oct 2008
I have a table with the following (this is a short example as there are
actuall 16 types, not 2)
1=dental
a=aetna
b=metlife
2-medical
c=metlife
d:=aetna

My employee record has 1 type of dental plan (a or b), 1 type of medical (c
or d). SOme of the records in this plan is missing, i.e. dental (1) for
example. I am trying to identify what is missing on each employee's record.

The problem is I can't do a 1:many since there is no identifier (employee
name/number) to tell me which employee has a particular benefit missing.

I created a crosstab query and it does show what is missing from each
employee but doesn't really work for what I need it to do.

Does anyone have any suggestions on how I can identify what is missing? I
have a query to identify those employees that have < 16 benefits. I then
filtered further down to 'link' up the list of 16 benefits to the list of
benefits of those employees that have less than 16.

Thank you for any assistance, I'm brain dead, trying to figure this one out.
 
Reply With Quote
 
 
 
 
Jeff Boyce
Guest
Posts: n/a
 
      28th Oct 2008
I couldn't tell from your example what data elements and structure you are
using.

"How" depends on "what"...

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Miskacee" <(E-Mail Removed)> wrote in message
news:B5494D9F-14E0-455F-8433-(E-Mail Removed)...
>I have a table with the following (this is a short example as there are
> actuall 16 types, not 2)
> 1=dental
> a=aetna
> b=metlife
> 2-medical
> c=metlife
> d:=aetna
>
> My employee record has 1 type of dental plan (a or b), 1 type of medical
> (c
> or d). SOme of the records in this plan is missing, i.e. dental (1) for
> example. I am trying to identify what is missing on each employee's
> record.
>
> The problem is I can't do a 1:many since there is no identifier (employee
> name/number) to tell me which employee has a particular benefit missing.
>
> I created a crosstab query and it does show what is missing from each
> employee but doesn't really work for what I need it to do.
>
> Does anyone have any suggestions on how I can identify what is missing? I
> have a query to identify those employees that have < 16 benefits. I then
> filtered further down to 'link' up the list of 16 benefits to the list of
> benefits of those employees that have less than 16.
>
> Thank you for any assistance, I'm brain dead, trying to figure this one
> out.



 
Reply With Quote
 
Clif McIrvin
Guest
Posts: n/a
 
      28th Oct 2008
If I'm following you correctly, seems like you could write an outer join
between your employees table and your benefits table which would give
you a query showing every employee with all sixteen possible benefits.
Call it AllEmployeesAllBenefits.

Then, use the find unmatched query wizard between your employees table
and AllEmployeesAllBenefits to generate a list of missing combinations
in your employees table.

--
Clif
Still learning Access 2003

"Miskacee" <(E-Mail Removed)> wrote in message
news:B5494D9F-14E0-455F-8433-(E-Mail Removed)...
>I have a table with the following (this is a short example as there are
> actuall 16 types, not 2)
> 1=dental
> a=aetna
> b=metlife
> 2-medical
> c=metlife
> d:=aetna
>
> My employee record has 1 type of dental plan (a or b), 1 type of
> medical (c
> or d). SOme of the records in this plan is missing, i.e. dental (1)
> for
> example. I am trying to identify what is missing on each employee's
> record.
>
> The problem is I can't do a 1:many since there is no identifier
> (employee
> name/number) to tell me which employee has a particular benefit
> missing.
>
> I created a crosstab query and it does show what is missing from each
> employee but doesn't really work for what I need it to do.
>
> Does anyone have any suggestions on how I can identify what is
> missing? I
> have a query to identify those employees that have < 16 benefits. I
> then
> filtered further down to 'link' up the list of 16 benefits to the list
> of
> benefits of those employees that have less than 16.
>
> Thank you for any assistance, I'm brain dead, trying to figure this
> one out.







 
Reply With Quote
 
Miskacee
Guest
Posts: n/a
 
      29th Oct 2008
Thanks for your help. I tried what you suggested prior to sending out this
information. I figured it out. I had to add tbl_enrolled and tbl_enrolled1
and then the tbl_benefits in order to get the list of missing data. The
unmatched wouldn't work because there are thousands of enrolled employees and
the unmatched couldn't 'link' up the proper employee # with what was missing.


"Miskacee" wrote:

> I have a table with the following (this is a short example as there are
> actuall 16 types, not 2)
> 1=dental
> a=aetna
> b=metlife
> 2-medical
> c=metlife
> d:=aetna
>
> My employee record has 1 type of dental plan (a or b), 1 type of medical (c
> or d). SOme of the records in this plan is missing, i.e. dental (1) for
> example. I am trying to identify what is missing on each employee's record.
>
> The problem is I can't do a 1:many since there is no identifier (employee
> name/number) to tell me which employee has a particular benefit missing.
>
> I created a crosstab query and it does show what is missing from each
> employee but doesn't really work for what I need it to do.
>
> Does anyone have any suggestions on how I can identify what is missing? I
> have a query to identify those employees that have < 16 benefits. I then
> filtered further down to 'link' up the list of 16 benefits to the list of
> benefits of those employees that have less than 16.
>
> Thank you for any assistance, I'm brain dead, trying to figure this one out.

 
Reply With Quote
 
Clif McIrvin
Guest
Posts: n/a
 
      29th Oct 2008
"Miskacee" <(E-Mail Removed)> wrote in message
news:8A301C30-1CE8-49B9-82D5-(E-Mail Removed)...
> Thanks for your help. I tried what you suggested prior to sending out
> this
> information. I figured it out. I had to add tbl_enrolled and
> tbl_enrolled1
> and then the tbl_benefits in order to get the list of missing data.
> The
> unmatched wouldn't work because there are thousands of enrolled
> employees and
> the unmatched couldn't 'link' up the proper employee # with what was
> missing.
>



Glad you got it sorted.

Often 2/3s of the battle is figuring out what criteria one needs to use
to select the data one is looking for. Coding the query quite often is
really the easiest part.

--
Clif
Still learning Access 2003




 
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
Query - Identify & group records zyus Microsoft Access 3 25th Mar 2010 03:15 PM
identify missing numbers in sequence of records Tom Whyte Microsoft Access Queries 3 9th Jul 2009 06:40 PM
Query to identify missing tax returns Fernando Microsoft Access Queries 3 1st Dec 2008 02:27 AM
Query to pull all records for those missing records lioneyes Microsoft Access Queries 5 13th Nov 2008 01:13 PM
MS Access Query Identify Friday's records. bbcdancer@hotmail.com Microsoft Excel Programming 0 3rd Jul 2006 03:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:14 AM.