I'm trying to create a combo box whose row source is a query. I'd like to filter the results of the query based on certain value either in one of the control's on the form (which could change - based on the current record) or a value that is fixed (the username using the application)
Say I want to show only items the user is allowed to see
or
I want to list tasks for the project currently selected.
I have used the where clause as: where cmb_name.colname = me.control this is not working.
I tried inserting this where clause in the query in the combo box's row source as well as inside the query itself that is called by the combo box - DOES NOT work either way.
What is the best practice?