I have a continuous subform with one combo box. This subform records what facilitators went on a given event. The combo box's row source is based on a query that only selects current facilitators (current/not current is recorded in the Facilitator table with a Yes/No field). This way, when selecting facilitators, the combo box only allows the user to choose from current facilitators.
This works great. The problem is that, for some reason, facilitators that aren't current aren't showing up in the subform when I look back at past events to see who went on that program. I go into the relevant table and the information is still there, it's just not showing up in the subform.
My theory is that since the non-current facilitators don't show up in the rowsource of the combo box, they aren't being displayed in the subform. Is this the most likely reason? If so, how do I fix it? If not, what might be another reason?
Here is the relevant background structure, to give more details to the situation:
The main form is bound to the Event table (Primary key is Event_ID) and the subform is bound to a Facilitation table. The names of the facilitators are in the Facilitator table (Primary key is Facilitator_ID). The Facilitation table is in a relationship with the Event table via Event_ID and with the Facilitator table via Facilitator_ID.
The subform is linked to the main form via the Event_ID, so only the facilitators of that event appear within the continuous subform.
The combo box's row source is FacilitatorComboSelectQuery, and here is it's SQL:
The combo box is bound to the Facilitator_ID field of the Facilitation table. It has 3 columns and the bound column is the first field of the query (Facilitator_ID). The bound column has a width of 0", so it is invisible in the drop-down list of the combo box and isn't visible in the field after update (the first name field is instead visible), but the Facilitator_ID is what is stored within the table, not the name.
Does anyone have any ideas? Thanks.
This works great. The problem is that, for some reason, facilitators that aren't current aren't showing up in the subform when I look back at past events to see who went on that program. I go into the relevant table and the information is still there, it's just not showing up in the subform.
My theory is that since the non-current facilitators don't show up in the rowsource of the combo box, they aren't being displayed in the subform. Is this the most likely reason? If so, how do I fix it? If not, what might be another reason?
Here is the relevant background structure, to give more details to the situation:
The main form is bound to the Event table (Primary key is Event_ID) and the subform is bound to a Facilitation table. The names of the facilitators are in the Facilitator table (Primary key is Facilitator_ID). The Facilitation table is in a relationship with the Event table via Event_ID and with the Facilitator table via Facilitator_ID.
The subform is linked to the main form via the Event_ID, so only the facilitators of that event appear within the continuous subform.
The combo box's row source is FacilitatorComboSelectQuery, and here is it's SQL:
Code:
SELECT FaciltatorTable.Facilitator_ID, FaciltatorTable.First_Name, FaciltatorTable.Last_Name
FROM FaciltatorTable
WHERE ((FaciltatorTable.Current=Yes))
GROUP BY FaciltatorTable.Facilitator_ID, FaciltatorTable.First_Name, FaciltatorTable.Last_Name;
The combo box is bound to the Facilitator_ID field of the Facilitation table. It has 3 columns and the bound column is the first field of the query (Facilitator_ID). The bound column has a width of 0", so it is invisible in the drop-down list of the combo box and isn't visible in the field after update (the first name field is instead visible), but the Facilitator_ID is what is stored within the table, not the name.
Does anyone have any ideas? Thanks.