I am having some real trouble getting a listbox rowsource to load
properly. The listbox is actually on a subform. My main form has
several command buttons that change the MASTER_SUB_FORM object source
to the specific sub form needed by the end user. When designing the
sub form i used the querybuilder to create an SQL statment to define
the listbox values.
****
RowSource SQL Statement
****
SELECT [CAN_LAST] & ", " & [CAN_FIRST] AS Name,
CANDIDATES.INTE RVIEW_TIME AS [Scheduled At] FROM CANDIDATES WHERE
(((CANDIDATES.E VENT)=FORMS!SEL ECT_INTERVIEW!S ELECT_INTERVIEW _EVENT))
GROUP BY [CAN_LAST] & ", " & [CAN_FIRST], CANDIDATES.INTE RVIEW_TIME
ORDER BY CANDIDATES.INTE RVIEW_TIME;
As you can see, I use an object(combobox ) as criteria
(Forms!SELECT_I NTERVIEW!SELECT _INTERVIEW_EVEN T)
When i only have the subform open this works fine. However, when i try
and load the subform from the main form I get a query prompt that says
Forms!SELECT_IN TERVIEW!SELECT_ INTERVIEW_EVENT .
What would cause this? Is there a way around this? I would really,
greatly appreciate any advise from you pro's
properly. The listbox is actually on a subform. My main form has
several command buttons that change the MASTER_SUB_FORM object source
to the specific sub form needed by the end user. When designing the
sub form i used the querybuilder to create an SQL statment to define
the listbox values.
****
RowSource SQL Statement
****
SELECT [CAN_LAST] & ", " & [CAN_FIRST] AS Name,
CANDIDATES.INTE RVIEW_TIME AS [Scheduled At] FROM CANDIDATES WHERE
(((CANDIDATES.E VENT)=FORMS!SEL ECT_INTERVIEW!S ELECT_INTERVIEW _EVENT))
GROUP BY [CAN_LAST] & ", " & [CAN_FIRST], CANDIDATES.INTE RVIEW_TIME
ORDER BY CANDIDATES.INTE RVIEW_TIME;
As you can see, I use an object(combobox ) as criteria
(Forms!SELECT_I NTERVIEW!SELECT _INTERVIEW_EVEN T)
When i only have the subform open this works fine. However, when i try
and load the subform from the main form I get a query prompt that says
Forms!SELECT_IN TERVIEW!SELECT_ INTERVIEW_EVENT .
What would cause this? Is there a way around this? I would really,
greatly appreciate any advise from you pro's
Comment