Hi all!
First of all, I know of the implications of using multivalue fields. The data I store in the field is on the fly data (what the user has selected for filtering).
So, let me first explain the setup:
1. Table (filter) that contains a few fields that for each user contains what the user has selected to filter in a form (query). One of those fields is a multivalue field, so that they can select 5,7 and 8 for instance.
2. Table with main data to be displayed via a form.
3. The form that displays the main data. The form's data source is a query, that has criteria, so that what the user has in the filter query is what is displayed from the main data table.
4. Filter form bound to the filter table. This a put on the main data form as a subform in the form header.
So, the subform with the bound multivalue field is displayed through the main data form. I change select some values in the multi value field and some code requeries the main data, which is based on a query, that looks in the subform control. I don't get the popup asking a value but I get no records, even though there are of course matching records.
My query has this criteria on the appropriate field: Forms![Dataform]![Filter_subform].Form![multivaluefield]
Got any good ideas on what could be wrong?
Please ask if I missed some important info.
First of all, I know of the implications of using multivalue fields. The data I store in the field is on the fly data (what the user has selected for filtering).
So, let me first explain the setup:
1. Table (filter) that contains a few fields that for each user contains what the user has selected to filter in a form (query). One of those fields is a multivalue field, so that they can select 5,7 and 8 for instance.
2. Table with main data to be displayed via a form.
3. The form that displays the main data. The form's data source is a query, that has criteria, so that what the user has in the filter query is what is displayed from the main data table.
4. Filter form bound to the filter table. This a put on the main data form as a subform in the form header.
So, the subform with the bound multivalue field is displayed through the main data form. I change select some values in the multi value field and some code requeries the main data, which is based on a query, that looks in the subform control. I don't get the popup asking a value but I get no records, even though there are of course matching records.
My query has this criteria on the appropriate field: Forms![Dataform]![Filter_subform].Form![multivaluefield]
Got any good ideas on what could be wrong?
Please ask if I missed some important info.