K
Ken Warthen
I have a listview control on an Access 2007 form where users can select any
or all of a list of names who will be sent an email with a pdf certificate
attached. The pdf is an Access report. I'm using the following code and the
OutputTo line is generating an error number 2501 (The OutputTo action was
canceled). I can't figure out what I'm doing wrong. Here's the syntax of
offending line I'm using.
DoCmd.OpenReport "Professional Development Certificate", acViewPreview,
WindowMode:=acHidden, OpenArgs:=strOpenArgs
' The following line generates error
DoCmd.OutputTo acOutputReport, ObjectName:="Professional Development
Certificate", OutputFormat:=acFormatPDF, OutputFile:=strOutputFile
Any help or suggestions, would be greatly appreciated.
Ken
or all of a list of names who will be sent an email with a pdf certificate
attached. The pdf is an Access report. I'm using the following code and the
OutputTo line is generating an error number 2501 (The OutputTo action was
canceled). I can't figure out what I'm doing wrong. Here's the syntax of
offending line I'm using.
DoCmd.OpenReport "Professional Development Certificate", acViewPreview,
WindowMode:=acHidden, OpenArgs:=strOpenArgs
' The following line generates error
DoCmd.OutputTo acOutputReport, ObjectName:="Professional Development
Certificate", OutputFormat:=acFormatPDF, OutputFile:=strOutputFile
Any help or suggestions, would be greatly appreciated.
Ken