UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

> Outputto Method Question    
 
   
petite39
post Mar 20 2012, 08:35 AM
Post #1

UtterAccess Ruler
Posts: 1,051



I used to do this:

DoCmd.OpenReport stDocName, acViewPreview, , mfilter2
DoCmd.RunCommand acCmdPrint
DoCmd.Close acReport, stDocName, acSavePrompt


Someone suggested I use the outputto method, so I changed it to this: and now the mfilter2 which had some parameters in it doesn't seem to have a place in the output2 method.

sOutputFileName = pathname & "\" & stDocNumber & "\" & stDocName & sFileNameSuffix
DoCmd.OutputTo acOutputReport, stDocName, acFormatPDF, sOutputFileName, False

So consequently the wrong report is being put to PDF.

Any ideas?
Go to the top of the page
 
+
 
Start new topic
Replies
petite39
post Mar 20 2012, 10:16 AM
Post #2

UtterAccess Ruler
Posts: 1,051



THAT WORKS!!!! Thank you sooooo much! I didn't realize I was replacing only 1 statement and I could keep the rest. This makes my day!
Go to the top of the page
 
+

Posts in this topic


Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 22nd May 2013 - 04:36 AM