Inside a continuous form, I have a combobox whose ControlSource is an id but displays a name (as it should). The RecordSource is set to a query that returns an id and name. The BoundColumn is the id column.
However, I want the RecordSource query to return a different list of id:name pairs depending on another field in that record (e.g. list only the employees that are in a department selected earlier in that row). Easy, right? - just add that condition to the query.
Here's the problem. The combobox list gets filled correctly for each row. However, the textbox portion of the comboboxes only display correctly for the currently selected record (and any other records that have the same department selected). Apparently, when Access does the name:id lookup for the textbox part of the combobox, it applies the condition for the currently selected record (e.g. I can only see employees in the textbox if they are in the same department as the department selected in current record).
Is there any way to get the ControlSource id:name lookup to work independently of the RecordSource query? I'd prefer to keep the field bound to avoid manually managing list updates.
thx!
However, I want the RecordSource query to return a different list of id:name pairs depending on another field in that record (e.g. list only the employees that are in a department selected earlier in that row). Easy, right? - just add that condition to the query.
Here's the problem. The combobox list gets filled correctly for each row. However, the textbox portion of the comboboxes only display correctly for the currently selected record (and any other records that have the same department selected). Apparently, when Access does the name:id lookup for the textbox part of the combobox, it applies the condition for the currently selected record (e.g. I can only see employees in the textbox if they are in the same department as the department selected in current record).
Is there any way to get the ControlSource id:name lookup to work independently of the RecordSource query? I'd prefer to keep the field bound to avoid manually managing list updates.
thx!