A
Access Joe
Hi everyone,
I have a table laid out as follows:
Record# ID DATA
1 1 LIS
2 1 LIS
3 1 (Blank)
4 2 LIS
5 2 LIS
6 3 (Blank)
7 4 (Blank)
8 4 LIS
9 5 (Blank)
0 5 (Blank)
As you can see, a person's record may appear more than once in the table.
What I want to do: anyone who has just one "LIS" record needs to be
completely removed from the table. For example, I want to remove ALL records
for ID #1, because "LIS" appeared in one of their records. So record #'s
1,2, and 3 would be deleted. Once all is said and done, the only record #'s
that should remain in the above table are 3 & 5 because they don't have 'LIS'
on their record row.
I'm familiar with query design and delete queries, but I can't figure out
how to delete all the patients records when the word LIS appears on just one
of them.
Hope this makes sense, and that someone can help. Thanks so much!
Joe
I have a table laid out as follows:
Record# ID DATA
1 1 LIS
2 1 LIS
3 1 (Blank)
4 2 LIS
5 2 LIS
6 3 (Blank)
7 4 (Blank)
8 4 LIS
9 5 (Blank)
0 5 (Blank)
As you can see, a person's record may appear more than once in the table.
What I want to do: anyone who has just one "LIS" record needs to be
completely removed from the table. For example, I want to remove ALL records
for ID #1, because "LIS" appeared in one of their records. So record #'s
1,2, and 3 would be deleted. Once all is said and done, the only record #'s
that should remain in the above table are 3 & 5 because they don't have 'LIS'
on their record row.
I'm familiar with query design and delete queries, but I can't figure out
how to delete all the patients records when the word LIS appears on just one
of them.
Hope this makes sense, and that someone can help. Thanks so much!
Joe