Hi Experts,
I am writting a module program using VBA in Access, and I have serious difficulties.
Objectives of the program:
-To do many queries from a database
- Export those queries in excel format. Some queries must be grouped in one files(i.e. putting the queries in different sheets of the same excel file)
- exporting those files using a template. It think this mite not be possible, but i was thinking in just making the template on the code... the template is only having a header and a footer.
So far:
What I have been able to do so far is to create queries directly and exporting them in to single excel files.
Also, I could run queries using recordset, but then don't know how to handle the data of the recordset (i.e. don't know how to get data out of the recordset and put it in a spreadsheet)
and one of the most important points, I am able to write in a excel file, in the first sheet, but dunno how to write on the second sheet and so on.
Just wondering if anyone can help me with any of my task. PLEASE...YOUR HELP IS MUCH APPREACIATTED .... THANKS IN ADVANCE
I am writting a module program using VBA in Access, and I have serious difficulties.
Objectives of the program:
-To do many queries from a database
- Export those queries in excel format. Some queries must be grouped in one files(i.e. putting the queries in different sheets of the same excel file)
- exporting those files using a template. It think this mite not be possible, but i was thinking in just making the template on the code... the template is only having a header and a footer.
So far:
What I have been able to do so far is to create queries directly and exporting them in to single excel files.
Also, I could run queries using recordset, but then don't know how to handle the data of the recordset (i.e. don't know how to get data out of the recordset and put it in a spreadsheet)
and one of the most important points, I am able to write in a excel file, in the first sheet, but dunno how to write on the second sheet and so on.
Just wondering if anyone can help me with any of my task. PLEASE...YOUR HELP IS MUCH APPREACIATTED .... THANKS IN ADVANCE