G
Guest
I have a multi-select list that filters my report but how do I show what the
user has selected in a textbox on the report?
Thanks!
user has selected in a textbox on the report?
Thanks!
Allen Browne said:You probably have some code that loops through the ItemsSelected collection
of the list box to build up the string to use in the WhereCondition of
OpenReport? Something like this example:
http://allenbrowne.com/ser-50.html
If so, you can then display the string on the report with a text box that
has its ControlSource set to:
=[Report].[Filter]
The trouble is that Access will show the filter, wheter it is applied or
not. And you can't solve that problem by testing the FilterOn property,
because Access does not maintain that property reliably.
In Access 2002 or 2003, you could also pass the string (or a better English
description if you prefer) in the OpenArgs of the report, and show it as:
=[Report].[OpenArgs]
In earlier versions, you could pass it through a public string, and assign
it in the Format event of the Report Header section.
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Reply to group, rather than allenbrowne at mvps dot org.
Joel said:I have a multi-select list that filters my report but how do I show what
the
user has selected in a textbox on the report?
Thanks!