My Assistant
|
|
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? |
|
|
|
![]() |
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!
|
|
|
|
petite39 Outputto Method Question Mar 20 2012, 08:35 AM
rbianco If you want to stay with the OutputTo method, then... Mar 20 2012, 08:41 AM
petite39 Not sure how to do that..... Mar 20 2012, 09:03 AM
rbianco what is the EXACT nature of your filter and its po... Mar 20 2012, 09:53 AM
theDBguy Hi,
What version of Access are you using? Knowing... Mar 20 2012, 10:02 AM
rbianco Sometimes I just read way too much into these ques... Mar 20 2012, 10:13 AM
theDBguy Hi,
QUOTE (petite39 @ Mar 20 2012, 08:16... Mar 20 2012, 10:19 AM
rbianco For what it is worth...dbGuy is too kind to ... Mar 20 2012, 10:40 AM![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 22nd May 2013 - 04:36 AM |