B
BruceM
I have a table (tblPlan) for general information about a Processing Plan for
machine parts. It has a related Plan Details table (tblPlanSteps) for the
individual steps. The individual steps are drawn from a list of steps
(contained in tblSteps) that are shared by several Plans.
tblPlan
PlanID (autonumber PK)
PlanNumber (in-house identifier)
tblSteps
StepID (autonumber PK)
StepDescription
tblPlanSteps
DetailsID (autonumber PK)
PlanID_ch (FK)
StepID_ch (FK)
Sample Plans:
PlanNumber: 100
Steps:
Weld
Grind
Polish
Coat
PlanNumber: 200
Steps:
Grind
Polish
Coat
What I need is a query that will produce a listing of just the plans that do
not contain the Weld step, and a second listing (maybe in another query) of
just the plans that do contain the Weld step. I have been playing around
with Count, DCount, criteria, and everything else I can think of, but
apparently I have neglected to think of the approach that will solve the
problem.
machine parts. It has a related Plan Details table (tblPlanSteps) for the
individual steps. The individual steps are drawn from a list of steps
(contained in tblSteps) that are shared by several Plans.
tblPlan
PlanID (autonumber PK)
PlanNumber (in-house identifier)
tblSteps
StepID (autonumber PK)
StepDescription
tblPlanSteps
DetailsID (autonumber PK)
PlanID_ch (FK)
StepID_ch (FK)
Sample Plans:
PlanNumber: 100
Steps:
Weld
Grind
Polish
Coat
PlanNumber: 200
Steps:
Grind
Polish
Coat
What I need is a query that will produce a listing of just the plans that do
not contain the Weld step, and a second listing (maybe in another query) of
just the plans that do contain the Weld step. I have been playing around
with Count, DCount, criteria, and everything else I can think of, but
apparently I have neglected to think of the approach that will solve the
problem.