OutputTo Excel Spreadsheet

J

JV

If I have a report made up of subreports, is it possible when using the
OutputTo procedure in macros to have have each subreport go on a separate
worksheet in the workbook?

Also, is there a way to keep the exact format of the report? For example,
the report has 1 column of information but the exported report in excel has 2
columns one for the data and the then on the next column it has the total. Is
there a way to make it stay in one column?
 
A

AnandaSim

If I have a report made up of subreports, is it possible when using the
OutputTo procedure in macros to have have each subreport go on a separate
worksheet in the workbook?

Also, is there a way to keep the exact format of the report? For example,
the report has 1 column of information but the exported report in excel has 2
columns one for the data and the then on the next column it has the total. Is
there a way to make it stay in one column?

AFAIK, the Access Report Designer produces its own layout - it can
have lines, shades, subreports, graphics logos etc...

On the other hand, Excel is a grid based program - the two have very
little in common.

They have so little in common that in Access 2007 Microsoft gave up
any pretense of Output To from an Access Report.

On the other hand, with VBA and lots of careful pulling and poking,
one can grab any data from Access and poke it into Excel.

HTH
Ananda
 
J

JV

Thanks Ananda, may you suggest where I may find information about the what
you mentioned below?
 
J

jwarnold

If I have a report made up of subreports, is it possible when using the
OutputTo procedure in macros to have have each subreport go on a separate
worksheet in the workbook?

Also, is there a way to keep the exact format of the report? For example,
the report has 1 column of information but the exported report in excel has 2
columns one for the data and the then on the next column it has the total. Is
there a way to make it stay in one column?

I did a quick Google, and was able to find these two functions that
may be of use to you:

* DoCmd.TransferSpreadsheet http://msdn2.microsoft.com/en-us/library/aa164087(office.10).aspx
* DoCmd.OutputTo http://www.blueclaw-db.com/docmd_outputto_example.htm

TransferSpreadsheet seems to be more what you are looking for.
You will have to do a little VBA action to make this work, but those
are a good place to start!
~jonathan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top