Hi Everyone in need of some assistance if possible!
I want to be able to capture only visible fields from a subforms datasheet, export to excel file and attach to email.
I can toggle visible columns on the subform's datasheet, export as excel attachment (via docmd.transferspreadsheet) to email but when you open the file it has all the fields. How do I capture the fields I've made decided to hide? I guess I need to somehow loop through whats visible and create a Query based on those fields as I take it that once this runs it goes off of the datasheets original layout
Thanks, Mike
I want to be able to capture only visible fields from a subforms datasheet, export to excel file and attach to email.
I can toggle visible columns on the subform's datasheet, export as excel attachment (via docmd.transferspreadsheet) to email but when you open the file it has all the fields. How do I capture the fields I've made decided to hide? I guess I need to somehow loop through whats visible and create a Query based on those fields as I take it that once this runs it goes off of the datasheets original layout
Thanks, Mike