I am fairly new to VBA and office Automation, and need some guidance. Here is my basic problem.
In my Access (2002) database, I have a Header table linked to Detail Table. The header contains a several descriptive fields, including a file name. Each header has multiple detail records with numeric and descriptive fields.
For each Header, I need to create a separate Excel spreadsheet. The data in the header is spread out over the first few lines of the spreadsheet, followed by a line holding column headings for the details. All of the detail records follow, one line per record.
In Access, I have already setup a Form with a Subform for the user to review the data before creating the spreadsheet. The Header is in the mainform, and the detail in the subform.
I would like to add a button to the main form for the user to click to create the spreadsheet, using the file name stored in the Header record.
Is Automation the way to go for this? Will it allow me to control exactly which columns and rows contain the header information, and then add all of the details starting at row 8? I've downloaded the automation help file provided by Microsoft, but don't want to go down this path if you think there is a simpler approach.
If there are any books/sites with detailed examples that you know of, I would appreciate that also.
Thanks in advance.
In my Access (2002) database, I have a Header table linked to Detail Table. The header contains a several descriptive fields, including a file name. Each header has multiple detail records with numeric and descriptive fields.
For each Header, I need to create a separate Excel spreadsheet. The data in the header is spread out over the first few lines of the spreadsheet, followed by a line holding column headings for the details. All of the detail records follow, one line per record.
In Access, I have already setup a Form with a Subform for the user to review the data before creating the spreadsheet. The Header is in the mainform, and the detail in the subform.
I would like to add a button to the main form for the user to click to create the spreadsheet, using the file name stored in the Header record.
Is Automation the way to go for this? Will it allow me to control exactly which columns and rows contain the header information, and then add all of the details starting at row 8? I've downloaded the automation help file provided by Microsoft, but don't want to go down this path if you think there is a simpler approach.
If there are any books/sites with detailed examples that you know of, I would appreciate that also.
Thanks in advance.