Run-time Errro '2501'

Access database 2010

Database is opening. Print to PDF works

When I click send button I believe it is send to email

I get an error message

If I click on debug it takes me to below line

Debug line

DoCmd.OutputTo acOutputReport, "Invoice_Single", acFormatPDF, DirFile & SendFile, 0

August 17th, 2015 7:06pm

Hi,

This is the forum to discuss questions and feedback for Microsoft Office, your issue need some VBA code, I'll move your question to the MSDN forum for Access

http://social.msdn.microsoft.com/Forums/en-US/home?forum=accessdev&filter=alltypes&sort=lastpostdesc

The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.

George Zhao
TechNet Community Support

Free Windows Admin Tool Kit Click here and download it now
August 17th, 2015 10:28pm

Hi. To properly troubleshoot this, we'll need to know what's in DirFile and SendFile variables. Also, can you open the report manually without any problem or prompt?
August 17th, 2015 11:50pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics