G
Guest
Hello
I have a form consisting of a list box and a command button. On pressing the
button, I want a report to show a list of records (the Recordsource is a
view), but only those where the value of one particular field is that same as
the one selected in the list box in the form.
How do I pass the value of the list box to the report to filter the records?
Merely putting [FieldName] = [Forms]![Formname]![Listbox name] doesn't work.
I know the value is being passed to the report itself as I have a textbox
that confirms the value selected on the Report - I just can't get it to
filter.
All ideas gratefully received
Rgds
Simon
I have a form consisting of a list box and a command button. On pressing the
button, I want a report to show a list of records (the Recordsource is a
view), but only those where the value of one particular field is that same as
the one selected in the list box in the form.
How do I pass the value of the list box to the report to filter the records?
Merely putting [FieldName] = [Forms]![Formname]![Listbox name] doesn't work.
I know the value is being passed to the report itself as I have a textbox
that confirms the value selected on the Report - I just can't get it to
filter.
All ideas gratefully received
Rgds
Simon