I am using Docmd.openquery to query a table using selected values from combo boxes as parameters. However I would like to limit the number of columns I am showing when the results are requested. The results are shown in datasheet view.
eg. if the user selects to see the sum of values, the query will return both the sum and average in the datasheet view.
I dont want to generate seperate queries. I basically want the VBA for hiding columns, the average column in the example above.
Sendkeys could be used as a last resort.
eg. if the user selects to see the sum of values, the query will return both the sum and average in the datasheet view.
I dont want to generate seperate queries. I basically want the VBA for hiding columns, the average column in the example above.
Sendkeys could be used as a last resort.