Microsoft
Software
Hardware
Network
Question : Access Report to PDF
Hi, I have been looking at Stephen Lebans great solution to creating password protected PDF's but am not a VBA expert and so have two questions I need to answer:
1: Can the save location of the PDF be specified by referencing a field on the form?
2: Can the name of the PDF be specified by referencing a field on the form?
I have attached Stephen Lebans database and the required dll files.
Many thanks
Answer : Access Report to PDF
You can tell the function where to put your report by including the full path and name. The 3rd argument is where you'd specify this:
ConvertReportToPDF(ReportN
ame, vbNullString, Me.YourOutputPathField & "\" & Me.YourReportNameField, False, True)
Random Solutions
Substitute function in Excel - Replace a comma by a comma with double quotes around it
Urgent System.UnauthorizedAccessE<wbr />xception
VC7: Newly introduced bugs in MFC\Src\viewhtml.cpp
How to stop SQL Server 2005 restore in progress
DC Diag errors- Replacing an old DC with a new server.
Showsound icon in notification area in Windows 7
Set SelectedValue of DropdownList in EditItemTemplate of Gridview. Visual Studio 2005.
Win98SE Root Hub Woes
Lookup to return all columns to the right in excel
Adding attachments to an Access form during dataentry