S
SusanV
Hi all,
I have a table with the following fields:
PlanID
PlanName
LOM
(plus other fields to be copied into the missing records, and a couple
fields to be left blank)
For each PlanID, there should be records for 4 LOMS: L1, L2, L3, and L4.
However, the data I received is fudged and for about a third of the Plans,
there are only records for L4 and L3, or only L4 and L2. It's a mess.
So basically I need to populate additional records of PlanID, PlanName, and
LOM = L2 (or whatever LOM is missing). Not ALL the Plans are missing LOMs,
and I can't quite get my head around how to loop through the table to
determine which ones are missing which LOMs. With around 300 PlanIDs I don't
want to do this manually. I'm sure it's not so tough as I'm feeling it is,
but I just can't seem to wrap my head around it. Without the missing records
everything comes to a screeching halt. <sigh>
Gotta love bad data. =(
Thanks in advance,
Susan
I have a table with the following fields:
PlanID
PlanName
LOM
(plus other fields to be copied into the missing records, and a couple
fields to be left blank)
For each PlanID, there should be records for 4 LOMS: L1, L2, L3, and L4.
However, the data I received is fudged and for about a third of the Plans,
there are only records for L4 and L3, or only L4 and L2. It's a mess.
So basically I need to populate additional records of PlanID, PlanName, and
LOM = L2 (or whatever LOM is missing). Not ALL the Plans are missing LOMs,
and I can't quite get my head around how to loop through the table to
determine which ones are missing which LOMs. With around 300 PlanIDs I don't
want to do this manually. I'm sure it's not so tough as I'm feeling it is,
but I just can't seem to wrap my head around it. Without the missing records
everything comes to a screeching halt. <sigh>
Gotta love bad data. =(
Thanks in advance,
Susan