S
sword856
Hello all. I've tried for a while to get this to work, but I haven't
been able to find a solution yet:
These are my tables: Classes, Jobs, Personnel, Crew, TrainingHistory.
Classes is a list of classes offered, ClassName being the primary
key. Jobs contains JobOrderNumber(PK), StartDate, and EndDate.
Personnel contains Name(PK), and Department. Crew is the junction
table between Jobs and Personnel and has Name, Position, and
JobOrderNumber, where Name and JON form the PK. TrainingHistory is
the junction table between Classes and Personnel and contains Name,
ClassName, and DateTaken, where Name and ClassName form the PK. What
I need is a way to display a report that prompts the user for a JON,
and returns every member of the crew for that JON, and for each crew
member returns all the classes they have taken. Not every crew member
on every job will have a class history, and therefore will not be in
the TrainingHistory table. I can construct a report that returns all
the names and class history of all the people in the database, and I
can construct a query that returns all the people who have received
training and their class history for a given JON. I need to be able
to display (in a report) ALL the members of the crew for a given JON,
even those who have no Training History. This is important so the
lead crew member can identify who on his crew does not have training
and can schedule it before they go out on a job.
I'm not sure if it's a simple query design that I'm just missing, or
if my table/relationship construction is not ideal, or if it's
something too complicated for me to do at all. It seems like it
should be easy to do, but I just can't see it. I am new at Access, so
I'm not familiar with VBA outside (I know how to use it a bit for
forms) and I've gotten somewhat of a grasp on SQL, so I think. If you
can help, your help is greatly appreciated.
been able to find a solution yet:
These are my tables: Classes, Jobs, Personnel, Crew, TrainingHistory.
Classes is a list of classes offered, ClassName being the primary
key. Jobs contains JobOrderNumber(PK), StartDate, and EndDate.
Personnel contains Name(PK), and Department. Crew is the junction
table between Jobs and Personnel and has Name, Position, and
JobOrderNumber, where Name and JON form the PK. TrainingHistory is
the junction table between Classes and Personnel and contains Name,
ClassName, and DateTaken, where Name and ClassName form the PK. What
I need is a way to display a report that prompts the user for a JON,
and returns every member of the crew for that JON, and for each crew
member returns all the classes they have taken. Not every crew member
on every job will have a class history, and therefore will not be in
the TrainingHistory table. I can construct a report that returns all
the names and class history of all the people in the database, and I
can construct a query that returns all the people who have received
training and their class history for a given JON. I need to be able
to display (in a report) ALL the members of the crew for a given JON,
even those who have no Training History. This is important so the
lead crew member can identify who on his crew does not have training
and can schedule it before they go out on a job.
I'm not sure if it's a simple query design that I'm just missing, or
if my table/relationship construction is not ideal, or if it's
something too complicated for me to do at all. It seems like it
should be easy to do, but I just can't see it. I am new at Access, so
I'm not familiar with VBA outside (I know how to use it a bit for
forms) and I've gotten somewhat of a grasp on SQL, so I think. If you
can help, your help is greatly appreciated.