Opal said:
Okay, both subforms are bound to tables:
subfrmTrainingNew:
SELECT Training.TrainingID, Training.CourseName,
Training.TrainingLineID, Training.RatingID
FROM Training WHERE (((Training.TrainingLineID)
=Forms!frmVersatility!TrainingLine));
subfrmTrainingUpt:
SELECT Versatility.TMNumber, Versatility.TrainingID,
Versatility.RatingID, Versatility.GLLink,
Versatility.TrainingLineID, Versatility.LineDesignationID
FROM Versatility
WHERE (((Versatility.TMNumber)=[Forms]![frmVersatility]![TMNumber])
AND ((Versatility.TrainingLineID)=[Forms]![frmVersatility]!
[TrainingLine]));
When the user selects the training line on the main form,
the following is in the Private sub on the form:
Me.subfrmTrainingNew.Requery
or
Me.subfrmTrainingUpt.Requery
depending on which action is taken.
Actually, the subforms are bound to those queries, but I get
that part of the picture.
I really want to understand why you are using query criteria
and Requery to sync the subforms with the mainform training
line control. I would expect that to done through the
subform controls' LinkMaster/Child properties. It's not
that this is going to fix the problem, but it makes me
wonder what other complications I don't know about.
Technically, the Requery lines are incomplete. I don't know
if they are working as you intended or not (depends on
Access version), but they should be:
Me.subfrmTrainingNew.FORM.Requery
and
Me.subfrmTrainingUpt.FORM.Requery