E
E.Q.
Greetings,
I want to make it easier for users to select milestones based on training
objectives. The final result should be a filtered list in a combo box,
cboObjID
I have a main form (frmTracking) and subform (subTrainedOn). The main form
contains a combo box cboTrainingAs. I've tried to use that value to filter
the value in an unbound cbo in the subform. I've been able to do this by
including the code Me.subTrainedOn.Form!cboPlantArea.Requery in the
cboTrainingAs After UPdate event. (The SQL is Select
tblPlantArea.chrPlantArea from tblPlantArea WHERE
(((tblPlantArea.chrWorkGroup)=[forms].[frmTracking].[cboTrainingAs])) Order
By tblPlantArea.chrPlantArea)
I then wanted to use the results to filter another subform cbo by adding
Me.cboObjID.Requery to cboPlantArea "after update" event.
The SQL for cboObjID looks like this:
Select tblTrainingObjective.lngObjID,[chrPlantArea&": "&[chrObjectiveName}
as Concant FROM tblTrainingObjective
WHERE
(((tblTrainingObjective.chrPlantArea)=[forms]![frmTracking].[subTrainedOn].[form]![cboPlantArea]));
This works with regards to getting the display to work for data entery. The
problem is that I lose data as I page through the records using the
navigation buttons. The entry in the unbound cbo remains the same and the
entry in cboObjID blanks out.
Can this be corrected?
Peace.
EQC
How do I get
I want to make it easier for users to select milestones based on training
objectives. The final result should be a filtered list in a combo box,
cboObjID
I have a main form (frmTracking) and subform (subTrainedOn). The main form
contains a combo box cboTrainingAs. I've tried to use that value to filter
the value in an unbound cbo in the subform. I've been able to do this by
including the code Me.subTrainedOn.Form!cboPlantArea.Requery in the
cboTrainingAs After UPdate event. (The SQL is Select
tblPlantArea.chrPlantArea from tblPlantArea WHERE
(((tblPlantArea.chrWorkGroup)=[forms].[frmTracking].[cboTrainingAs])) Order
By tblPlantArea.chrPlantArea)
I then wanted to use the results to filter another subform cbo by adding
Me.cboObjID.Requery to cboPlantArea "after update" event.
The SQL for cboObjID looks like this:
Select tblTrainingObjective.lngObjID,[chrPlantArea&": "&[chrObjectiveName}
as Concant FROM tblTrainingObjective
WHERE
(((tblTrainingObjective.chrPlantArea)=[forms]![frmTracking].[subTrainedOn].[form]![cboPlantArea]));
This works with regards to getting the display to work for data entery. The
problem is that I lose data as I page through the records using the
navigation buttons. The entry in the unbound cbo remains the same and the
entry in cboObjID blanks out.
Can this be corrected?
Peace.
EQC
How do I get