N
Nathan-bfhd
I have tables and queries that track child immunizations at given locations.
The children are in one table with a unique ID. The Visit information
(location and date) are in another table with a unique ID. The immunization
visit consists of looking at a child’s information regarding 17 different
immunizations and recording the status of them, such as current or needs.
The immunization info is also in its own table and is linked to the other two
with the ChildID and the VisitID.
For the report, I need to display all the immunizations needed for each
child at a specific visit.
I’ve created a query that gives me all the info I need and went ahead and
attempted the report. I have created a report that groups first by VisitID
(giving me the location and date), then by ChildID (giving me each individual
child at that visit) – so far so good. The problem I’m having is in
displaying the needed immunizations. I have the query set up to only display
the immunizations marked “Needsâ€, so that’s taken care of, but the way it is
listing them is not what I need. Since the immunizations are in their own
table and linked to the children by a ChildID, each immunization is its own
record. So, I end up with (for example):
FirstName1 LastName1 HepB1 Needs
FirstName1 LastName1 HepB2 Needs
FirstName1 LastName1 Hib2 Needs
FirstName1 LastName1 Hib3 Needs
FirstName2 LastName2 HepB2 Needs
FirstName2 LastName2 Hib1 Needs
FirstName2 LastName2 Hib2 Needs
FirstName2 LastName2 IPV1 Needs
If the child has 10 needed immunizations, I get 10 records with the child’s
name, immunizations and the status of needs.
Needless to say, this takes up way more space than it needs to and is not
what I’m looking for. What I want is:
FirstName1 LastName1 HepB1, HepB2, Hib2, Hib3 Needs
FirstName2 LastName2 HipB2, Hib1, Hib2, IPV1 Needs
I can do without the commas if that is more difficult, and I really don’t
need the “Needs†status there, but I would like the list of immunizations.
Anybody have an idea of how I can do this or where I could look to find this
– I’m at a total loss.
~Nathan
The children are in one table with a unique ID. The Visit information
(location and date) are in another table with a unique ID. The immunization
visit consists of looking at a child’s information regarding 17 different
immunizations and recording the status of them, such as current or needs.
The immunization info is also in its own table and is linked to the other two
with the ChildID and the VisitID.
For the report, I need to display all the immunizations needed for each
child at a specific visit.
I’ve created a query that gives me all the info I need and went ahead and
attempted the report. I have created a report that groups first by VisitID
(giving me the location and date), then by ChildID (giving me each individual
child at that visit) – so far so good. The problem I’m having is in
displaying the needed immunizations. I have the query set up to only display
the immunizations marked “Needsâ€, so that’s taken care of, but the way it is
listing them is not what I need. Since the immunizations are in their own
table and linked to the children by a ChildID, each immunization is its own
record. So, I end up with (for example):
FirstName1 LastName1 HepB1 Needs
FirstName1 LastName1 HepB2 Needs
FirstName1 LastName1 Hib2 Needs
FirstName1 LastName1 Hib3 Needs
FirstName2 LastName2 HepB2 Needs
FirstName2 LastName2 Hib1 Needs
FirstName2 LastName2 Hib2 Needs
FirstName2 LastName2 IPV1 Needs
If the child has 10 needed immunizations, I get 10 records with the child’s
name, immunizations and the status of needs.
Needless to say, this takes up way more space than it needs to and is not
what I’m looking for. What I want is:
FirstName1 LastName1 HepB1, HepB2, Hib2, Hib3 Needs
FirstName2 LastName2 HipB2, Hib1, Hib2, IPV1 Needs
I can do without the commas if that is more difficult, and I really don’t
need the “Needs†status there, but I would like the list of immunizations.
Anybody have an idea of how I can do this or where I could look to find this
– I’m at a total loss.
~Nathan