D
Donna Brooks
Hi,
I am having a little trouble figuring out how to design a
query to pull my necessary data, which may be due to the
way I set up the database. Our facility has to give
employees TB shots. They must have a first step, a second
step, and an annual shot. I would have just used one
record per employee, but the number of annuals is
ongoing. So what I done was, for example:
RecNo EmpName Description Date
1 Jo Blo First Step 01/01/02
2 Jane Doe First Step 02/04/02
3 Jo Blo Second Step 02/06/02
4 Jane Doe Second Step 03/04/02
5 Jo Blo Annual 01/01/03
6 Jane Doe Annual 02/04/03
7 Jo Blo Annual 01/01/04
8 Jane Doe Annual 02/04/04
Now,how would you query this to ask the question, Who is
due for a shot on [Enter Date]. Who is due for a shot and
what shot, first, second or annual?
Thanks,
Donna Brooks
I am having a little trouble figuring out how to design a
query to pull my necessary data, which may be due to the
way I set up the database. Our facility has to give
employees TB shots. They must have a first step, a second
step, and an annual shot. I would have just used one
record per employee, but the number of annuals is
ongoing. So what I done was, for example:
RecNo EmpName Description Date
1 Jo Blo First Step 01/01/02
2 Jane Doe First Step 02/04/02
3 Jo Blo Second Step 02/06/02
4 Jane Doe Second Step 03/04/02
5 Jo Blo Annual 01/01/03
6 Jane Doe Annual 02/04/03
7 Jo Blo Annual 01/01/04
8 Jane Doe Annual 02/04/04
Now,how would you query this to ask the question, Who is
due for a shot on [Enter Date]. Who is due for a shot and
what shot, first, second or annual?
Thanks,
Donna Brooks