Hello all,
I have tried searching through this forum for clues on whether this is possible, but I'm not even sure how to phrase the search criteria.
I would like to create a form that has a check box for each field in an underlying query. I can do this.
I would then like to change the 'Show' property of the corresponding fields in the query (turning it on if the check box is true, off if false).
When the user checks which fields they want to appear, then clicks a command button on the form, the query will be executed to output the results to an Excel file, which will only contain the selected fields.
Is this even possible, and if so, how do I change the 'Show' property with VBA code?
I have tried searching through this forum for clues on whether this is possible, but I'm not even sure how to phrase the search criteria.
I would like to create a form that has a check box for each field in an underlying query. I can do this.
I would then like to change the 'Show' property of the corresponding fields in the query (turning it on if the check box is true, off if false).
When the user checks which fields they want to appear, then clicks a command button on the form, the query will be executed to output the results to an Excel file, which will only contain the selected fields.
Is this even possible, and if so, how do I change the 'Show' property with VBA code?