PDA

View Full Version : Solved: Multiple queries output to one excel file



boc_est1986
10-05-2011, 05:33 AM
I have seveveral queries being run that i would like to output to single excel file. I am currently using DoCmd.RunCommand acCmdOutputToExcel but this puts each one into a seperate workbook. I have also tried the TransferSpreadsheet method but because all my queries use a sepearte form to select a parameter this just isn't working. Does anyone know how i can achieve this?

Norie
10-06-2011, 04:08 AM
Can't you use the same form for all the queries?

HiTechCoach
10-06-2011, 08:20 AM
This may help: Export Data To Excel (http://www.hitechcoach.com/index.php?view=weblink&catid=84%3Aaccess-vba-office-automation&id=301%3Aexport-data-to-excel&option=com_weblinks&Itemid=23)

boc_est1986
10-11-2011, 02:07 AM
This may help: Export Data To Excel (http://www.hitechcoach.com/index.php?view=weblink&catid=84%3Aaccess-vba-office-automation&id=301%3Aexport-data-to-excel&option=com_weblinks&Itemid=23)

Thanks this worked great

HiTechCoach
10-11-2011, 12:12 PM
You're welcome.

Glad we could assist.