Hi All,
I have this code behind a cmd on a report. It works great. I would like to offer the user the option to choose a name for the pdf file and allow them to choose where to save the file. Can anyone perhaps provide some guidance on how I can begin to do this. I know I have to envoke the file dialog but not sure how to proceed from there. Thank you for any help!
I tried using the FileDialog for SaveAs kept getting an error.
I have this code behind a cmd on a report. It works great. I would like to offer the user the option to choose a name for the pdf file and allow them to choose where to save the file. Can anyone perhaps provide some guidance on how I can begin to do this. I know I have to envoke the file dialog but not sure how to proceed from there. Thank you for any help!
Code:
DoCmd.OutputTo acOutputReport, "MyReprot", acFormatPDF, "MyPDF.pdf", True
I tried using the FileDialog for SaveAs kept getting an error.
Last edited: