I have a problem which probably sounds more complicated than it actually is.
Basically I have a table called tblData which contains 5 fields that I want to export out to an Excel worksheet - there will only ever be one record in this table since it gets cleared out daily. I have no problem with exporting data to an Excel worksheet as I've done this before. However, I have only ever appended data to the last row of a worksheet that contains no column headers, footers etc. But on this occasion the first 3 rows of the worksheet contain titles and column headers, the next 31 rows is where the data will get exported to and then the next row (row 35) contains the columns footers & totals. Also, the first column of the worksheet contains titles for each row. Hope your with me so far!
The 31 rows mentioned above correspond to the days of the month, except obviously for months that have 30 days are less where there will then be some blank rows.
So each day I wish to export the data from tblData into the next blank row under the column headers. The way I have previously exported from Access to Excel won't work because the procedure I use reads from the bottom of the worksheet upwards until it finds the first row containing data. But doing it this way will mean the first row of data it finds will be the one containing the column footers & totals.
I know there is probably a straightforward solution but I just can't seem to find it. So if anyone can help I would be most grateful, and if you could provide some sample code I will be even more grateful
Basically I have a table called tblData which contains 5 fields that I want to export out to an Excel worksheet - there will only ever be one record in this table since it gets cleared out daily. I have no problem with exporting data to an Excel worksheet as I've done this before. However, I have only ever appended data to the last row of a worksheet that contains no column headers, footers etc. But on this occasion the first 3 rows of the worksheet contain titles and column headers, the next 31 rows is where the data will get exported to and then the next row (row 35) contains the columns footers & totals. Also, the first column of the worksheet contains titles for each row. Hope your with me so far!
The 31 rows mentioned above correspond to the days of the month, except obviously for months that have 30 days are less where there will then be some blank rows.
So each day I wish to export the data from tblData into the next blank row under the column headers. The way I have previously exported from Access to Excel won't work because the procedure I use reads from the bottom of the worksheet upwards until it finds the first row containing data. But doing it this way will mean the first row of data it finds will be the one containing the column footers & totals.
I know there is probably a straightforward solution but I just can't seem to find it. So if anyone can help I would be most grateful, and if you could provide some sample code I will be even more grateful