Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to create 2 column MS Word document?

Status
Not open for further replies.

stable

Programmer
Mar 19, 2003
92
NZ
Hi there,

I have not created a word document out of Access before.

I need to produce a 2 column MS word document report listing the results from a stored procedure. This file will be overwritten periodically.

Each column actually contains 2 fields - the name and amount. I would like the name to be left aligned and the amount to be right aligned.

There are also group headings in this report and these need to be bold. The most important point is that I want the data to appear down column 1 first before starting column 2.

Can anyone give me some pointers on how to get started?

Cheers
Stable
 
Hi,

you could create a report in your access project, including all the alignments and formatting. this report could be output to word as a *.rtf file:

Code:
DoCmd.OutputTo acOutputReport, "yourreportname", "Rich Text Format", "c:\somefolder\somefile.rtf", -1

please note that 'graphical elements' like pictures, lines ... are not output to the *.rtf document.

And a question: what do you mean with
I want the data to appear down column 1 first before starting column 2

HTH,
fly

Martin Serra Jr.
 
Hi Martin,

Sorry I didn't make that very clear. I want a 2 column "portrait" report that lists the data in order down column one first before commencing column 2. i.e. I want 2 lists per page.

As far as I'm aware in Access reports the data can only be reported one record per line. I'm using Office 2003.

Have I missed something very obvious?

Cheers
Stable
 
Hi there,

I've realised that I can make a 2 column report by starting with the label wizard (basically setting the report width to say 7.5cm will achieve this). But unfortunately the data still goes sequentially across the page rather than down.

cheers
Stable
 
Hi Martin,

Unfortunately the data needs to flow from one list onto the next and I do not know how much data to expect.

Any other ideas?

Cheers
Stable
 
Why not send as single then transpose in word manually

Hope this helps
Hymn
 
Hi again,

I feal that it'd help us if you'd describe the datasource of your report in more detail. perhaps can you post the code of the stored procedure?

regards,
fly

Martin Serra Jr.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top