Re: Exporting Reports to Word
- From: Lisa <Lisa@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 21 Feb 2008 08:43:02 -0800
Thank you, but I am still having a problem, maybe I should have said this in
the beginning, my report is based on 4 querys, so I have a main report and 3
sub reports. Each query is from different tables. Do you have any other
suggestions or am I trying to do something that is not possible.
--
Lisa S.
"gllincoln" wrote:
Hi Lisa,.
Oop's. In my previous message, I somehow missed the part about export to
WORD. I guess 'the subject line' was too subtle for me... <blush>
Function myStoreReports() As Boolean
Dim rs As DAO.Recordset
dim myFileName as string
Set rs = CurrentDb.OpenRecordset("SELECT DISTINCT [Store_ID] FROM
[MyStoreTableName];")
Do While Not rs.EOF
myFileName = rs.fields(0) & "_" & Format(Now(),
"YY-MM-dd_hh-mm-ss") & ".rtf"
DoCmd.OpenReport "My Report", acViewNormal, , "Store_ID='" &
rs.Fields(0) & "'"
DoCmd.OutputTo acReport, "My Report", "RichTextFormat(*.rtf)",
myFileName, False, ""
DoCmd.Close acReport, "My Report"
rs.MoveNext
Loop
Set rs = Nothing
myStoreReports = True
End Function
Try this version of the function instead - it will send it to an rtf file
which is as close to a Word Doc as you are going to get with Access
exporting.
Gordon
"Lisa" <Lisa@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:36C7A7A5-2AED-4FAD-A816-7E0BEFF938BF@xxxxxxxxxxxxxxxx
Would Ihave to set a macro for each store? If so That would not bedynamic
enough. We are continuing to grow and open an additional 10 stores ayear
which would mean I would have to add a macro everytime a store opened.one
--
Lisa S.
"gllincoln" wrote:
Hi Lisa,
The easiest way would probably be to filter the report to contain only
processstore at a time and print that 'view'. If you want to automate the
applyyou could create series of macro steps to apply filter, export report,
aboutnew filter, export report.
Hope this helps,
Gordon
"Lisa" <Lisa@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:A9D2A35E-E609-492D-84BD-751289DD6EF8@xxxxxxxxxxxxxxxx
I am trying to export or publish a report into word. The report has
many80
stores within it. Each store starts at a new page. Some stores have
eachpages to them. I want to export the report out to word, but I want
documentstore
to have it's onw location. For example: Laurel will go to a new
pasteand
Annapolis will go to it's own word document. Right now I publish the
report
and all of the stores are in one document and I have to copy and
them
into there own document. Is this possible?
--
Lisa S.
- Follow-Ups:
- Re: Exporting Reports to Word
- From: gllincoln
- Re: Exporting Reports to Word
- Prev by Date: Re: how to link to a csv file with a date field in it?
- Next by Date: Re: Newbie Question
- Previous by thread: Re: Exporting Reports to Word
- Next by thread: Re: Exporting Reports to Word
- Index(es):
Relevant Pages
|