ozgirl
asked on
Export Access Queries to different sheets in Excel
Hi Experts
The following runs to two separate excel sheets but i'm trying to get the data to run to sheet 1 and then sheet 2 in the same excel workbook.
any help or suggestions is greatly appreciated :)
ozgirl
DoCmd.OpenForm "PleaseWait", acNormal, "", "", acReadOnly, acNormal
DoCmd.RepaintObject acForm, "PleaseWait"
DoCmd.SetWarnings False
DoCmd.OpenQuery "qryDataDump_Cleanse"
DoCmd.SetWarnings True
DoCmd.Close acForm, "PleaseWait"
DoCmd.OutputTo acTable, "tmpDataDump", "MicrosoftExcelBiff5(*.xls )", "", True, "", 0
DoCmd.OpenQuery "qryDataDump_Cleanse_Tasks "
DoCmd.OutputTo acTable, "tmpDataDump_b", "MicrosoftExcelBiff5(*.xls )", "", True, "", 0
DoCmd.SetWarnings True
DoCmd.Close acForm, "PleaseWait"
The following runs to two separate excel sheets but i'm trying to get the data to run to sheet 1 and then sheet 2 in the same excel workbook.
any help or suggestions is greatly appreciated :)
ozgirl
DoCmd.OpenForm "PleaseWait", acNormal, "", "", acReadOnly, acNormal
DoCmd.RepaintObject acForm, "PleaseWait"
DoCmd.SetWarnings False
DoCmd.OpenQuery "qryDataDump_Cleanse"
DoCmd.SetWarnings True
DoCmd.Close acForm, "PleaseWait"
DoCmd.OutputTo acTable, "tmpDataDump", "MicrosoftExcelBiff5(*.xls
DoCmd.OpenQuery "qryDataDump_Cleanse_Tasks
DoCmd.OutputTo acTable, "tmpDataDump_b", "MicrosoftExcelBiff5(*.xls
DoCmd.SetWarnings True
DoCmd.Close acForm, "PleaseWait"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER