![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I always get the same error message on the OutputTo line. Error r 2585 This action can't be carried out while processing a form or report event. Am I correct in assuming then that the code has to be run from something other than the report (say a command button on a form? |
#3
| |||
| |||
|
|
"Phil" wrote in message news:jebt81$f8r$1 (AT) speranza (DOT) aioe.org... I always get the same error message on the OutputTo line. Error r 2585 This action can't be carried out while processing a form or report event. Am I correct in assuming then that the code has to be run from something other than the report (say a command button on a form? You can launch the report and then launch a form. Or you can place the options in a custom ribbon. Not too much of a surprise that the report has already execcuted the un-load event and is really quite much un-loaded. Attempting to output a report that that already running a un-load event and quite much turning out the "lights" so to speak is not going to work. For all of my reports I built a custom ribbon. I have mail as PDF, save as PDF, print to default printer, select printer to print to, export as word, text, excel. Just build this ribbon once, and you can use it for the next 10 years. In fact I don't even remember the code or XML. Built this and then forget about ever looking at how it works. I had an example somewhere that used more of the built in PDF options, but I cannot for some reason find that ribbon. However, I do have a sample one here that uses some code and can be found here: http://www.kallal.ca/msaccess/DownLoad.htm from above you want: Access 2007 report ribbon example (with PDF and email). The direct URL to the download form the above link resolves to this: Access 2007 report ribbon example (with PDF and email). http://www.kallal.ca/msaccess/RibbonReportPDF.zip |
#4
| |||
| |||
|
|
On 08/01/2012 14:47:36, "Albert D. Kallal" wrote: "Phil" wrote in message news:jebt81$f8r$1 (AT) speranza (DOT) aioe.org... I always get the same error message on the OutputTo line. Error r 2585 This action can't be carried out while processing a form or report event. Am I correct in assuming then that the code has to be run from something other than the report (say a command button on a form? You can launch the report and then launch a form. Or you can place the options in a custom ribbon. Not too much of a surprise that the report has already execcuted the un-load event and is really quite much un-loaded. Attempting to output a report that that already running a un-load event and quite much turning out the "lights" so to speak is not going to work. For all of my reports I built a custom ribbon. I have mail as PDF, save as PDF, print to default printer, select printer to print to, export as word, text, excel. Just build this ribbon once, and you can use it for the next 10 years. In fact I don't even remember the code or XML. Built this and then forget about ever looking at how it works. I had an example somewhere that used more of the built in PDF options, but I cannot for some reason find that ribbon. However, I do have a sample one here that uses some code and can be found here: http://www.kallal.ca/msaccess/DownLoad.htm from above you want: Access 2007 report ribbon example (with PDF and email). The direct URL to the download form the above link resolves to this: Access 2007 report ribbon example (with PDF and email). http://www.kallal.ca/msaccess/RibbonReportPDF.zip Thanks Albert. That seems a very simple solution. Must get to grips wit ribbons. Phil |
#5
| |||
| |||
|
|
For all of my reports I built a custom ribbon. I have mail as PDF, save as PDF, print to default printer, select printer to print to, export as word, text, excel. Just build this ribbon once, and you can use it for the next 10 years. In fact I don't even remember the code or XML. Built this and then forget about ever looking at how it works. |
![]() |
| Thread Tools | |
| Display Modes | |
| |