Sending Ms Access Reports To Pdf Via Vba Code

If you have Microsoft Access 2010 or a later version, you can easily convert your Access reports to PDF without using Adobe Acrobat Pro. Use the File tab or the External Data tab on the Ribbon or you can customize the Quick Access Toolbar. I'm trying to send an existing Access Report as an attachment via MS Outlook. The SendObject method is not an option. Since, the report i'm trying to send is an access object it is not stored at a particular path on the PC/network.

Active1 year, 2 months ago

I'm looking for a very simple solution here. I simply want a vba script that I can run over and over again to save the same Access report (that changes as the weeks go by) into the same file over and over again. I need it to be the same name each time and don't want to be prompted that the filename is already there. In my research, it feels like the following should work but it does not. Can anyone provide a simple script that performs this task?

HansUp
88.4k11 gold badges61 silver badges110 bronze badges
BoujeBouje

1 Answer

Add a line continuation character (underscore: _) to indicate the line following DoCmd.OutputTo should be considered part of the same logical instruction:

The line continuation character must be preceded by at least one space, and there can be no characters after the line continuation.

HansUpHansUp
88.4k11 gold badges61 silver badges110 bronze badges

Sending Ms Access Reports To Pdf Via Vba Codes

Vba

Sending Ms Access Reports To Pdf Via Vba Code In Excel

Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

Ms Access Reports To Pdf

Not the answer you're looking for? Browse other questions tagged vbams-accessaccess-vba or ask your own question.