I have a nifty Summaries and Report Menu for an application I developed. It has a subform that is tied to a query, and is invisible until they click the Run Summary button on the main form. The subform shows as a datasheet.
This is very useful to the end users, because they like to just take the grid and throw it in excel and email it.
The problem is that the report menu lets them choose from a bunch of different options to filter on, and based on that, they may not want certain fields in the results. The query is giving them all the fields, and in certain cases, that will repeat the records because of sub records. In those cases, we don't want those extra fields.
How would I go about making a listbox of the fields that are available (with nice names) and letting them choose 1 or more of those for their output? I would need the query to only run on those columns so that records would appropriately group based on the columns chosen at that time.
Any thoughts?
Thanks!
misscrf
It is never too late to become what you could have been ~ George Eliot
This is very useful to the end users, because they like to just take the grid and throw it in excel and email it.
The problem is that the report menu lets them choose from a bunch of different options to filter on, and based on that, they may not want certain fields in the results. The query is giving them all the fields, and in certain cases, that will repeat the records because of sub records. In those cases, we don't want those extra fields.
How would I go about making a listbox of the fields that are available (with nice names) and letting them choose 1 or more of those for their output? I would need the query to only run on those columns so that records would appropriately group based on the columns chosen at that time.
Any thoughts?
Thanks!
misscrf
It is never too late to become what you could have been ~ George Eliot